|
Swadge ESP32-S2
APIs to develop for the Magfest Swadge
|
Functions | |
| bool | loadFont (cnfsFileIdx_t fIdx, font_t *font, bool spiRam) |
| Load a font from ROM to RAM. Fonts are bitmapped image files that have a single height, all ASCII characters, and a width for each character. PNGs placed in the assets folder before compilation will be automatically flashed to ROM. | |
| void | freeFont (font_t *font) |
| Free the memory allocated for a font. | |
| bool loadFont | ( | cnfsFileIdx_t | fIdx, |
| font_t * | font, | ||
| bool | spiRam ) |
Load a font from ROM to RAM. Fonts are bitmapped image files that have a single height, all ASCII characters, and a width for each character. PNGs placed in the assets folder before compilation will be automatically flashed to ROM.
| fIdx | The cnfsFileIdx_t of the font to load. The font_t is not allocated by this function |
| font | A handle to load the font to |
| spiRam | true to load to SPI RAM, false to load to normal RAM. SPI RAM is more plentiful but slower to access than normal RAM |
| void freeFont | ( | font_t * | font | ) |
Free the memory allocated for a font.
| font | The font handle to free memory from |