Swadge ESP32-S2
APIs to develop for the Magfest Swadge
Toggle main menu visibility
Loading...
Searching...
No Matches
fs_wsg.h
Go to the documentation of this file.
1
32
33
#ifndef _FS_WSG_H_
34
#define _FS_WSG_H_
35
36
#include <stdint.h>
37
#include <stdbool.h>
38
39
#include "
palette.h
"
40
41
#include "cnfs_image.h"
42
#include "
wsg.h
"
43
#include "
heatshrink_helper.h
"
44
#include "heatshrink_encoder.h"
45
46
bool
loadWsg
(cnfsFileIdx_t fIdx,
wsg_t
* wsg,
bool
spiRam);
47
bool
loadWsgInplace
(cnfsFileIdx_t fIdx,
wsg_t
* wsg,
bool
spiRam, uint8_t* decompressedBuf, heatshrink_decoder* hsd);
48
bool
loadWsgNvs
(
const
char
*
namespace
,
const
char
* key,
wsg_t
* wsg,
bool
spiRam);
49
bool
saveWsgNvs
(
const
char
*
namespace
,
const
char
* key,
const
wsg_t
* wsg);
50
void
freeWsg
(
wsg_t
* wsg);
51
52
#endif
saveWsgNvs
bool saveWsgNvs(const char *namespace, const char *key, const wsg_t *wsg)
Definition
fs_wsg.c:208
loadWsgNvs
bool loadWsgNvs(const char *namespace, const char *key, wsg_t *wsg, bool spiRam)
Definition
fs_wsg.c:149
loadWsgInplace
bool loadWsgInplace(cnfsFileIdx_t fIdx, wsg_t *wsg, bool spiRam, uint8_t *decompressedBuf, heatshrink_decoder *hsd)
Load a WSG from ROM to RAM. WSGs placed in the assets_image folder before compilation will be automat...
Definition
fs_wsg.c:99
freeWsg
void freeWsg(wsg_t *wsg)
Free the memory for a loaded WSG.
Definition
fs_wsg.c:261
loadWsg
bool loadWsg(cnfsFileIdx_t fIdx, wsg_t *wsg, bool spiRam)
Load a WSG from ROM to RAM. WSGs placed in the assets_image folder before compilation will be automat...
Definition
fs_wsg.c:32
heatshrink_helper.h
palette.h
wsg.h
wsg_t
A sprite using paletteColor_t colors that can be drawn to the display.
Definition
wsg.h:57
main
utils
filesystem
fs_wsg.h
Generated by
1.17.0