PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #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
|