|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #ifndef _ST7735_FONTS_H
- #define _ST7735_FONTS_H
-
- #include <stdio.h>
- /*
- #if defined(_FORCE_PROGMEM__)
-
- typedef struct PROGMEM {
- const uint8_t *data;
- uint8_t image_width;
- int image_datalen;
- } tImage;
-
- typedef struct {
- uint8_t char_code;
- const tImage *image;
- } tChar;
-
- typedef struct {
- uint8_t length;
- const tChar *chars;
- uint8_t font_width;
- uint8_t font_height;
- bool rle;
- } tFont;
- #else
- typedef struct {
- const uint8_t *data;
- uint8_t image_width;
- int image_datalen;
- } tImage;
-
- typedef struct {
- uint8_t char_code;
- const tImage *image;
- } tChar;
-
- typedef struct {
- uint8_t length;
- const tChar *chars;
- uint8_t font_width;
- uint8_t font_height;
- bool rle;
- } tFont;
- #endif
-
- */
- typedef struct __PRGMTAG_ {
- const uint8_t *data;
- uint8_t image_width;
- int image_datalen;
- } tImage;
-
- typedef struct {
- uint8_t char_code;
- const tImage *image;
- } tChar;
-
- typedef struct {
- uint8_t length;
- const tChar *chars;
- uint8_t font_width;
- uint8_t font_height;
- bool rle;
- } tFont;
-
- #endif
|