PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
- #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
|