PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

68 rindas
1.1KB

  1. #ifndef _ST7735_FONTS_H
  2. #define _ST7735_FONTS_H
  3. #include <stdio.h>
  4. /*
  5. #if defined(_FORCE_PROGMEM__)
  6. typedef struct PROGMEM {
  7. const uint8_t *data;
  8. uint8_t image_width;
  9. int image_datalen;
  10. } tImage;
  11. typedef struct {
  12. uint8_t char_code;
  13. const tImage *image;
  14. } tChar;
  15. typedef struct {
  16. uint8_t length;
  17. const tChar *chars;
  18. uint8_t font_width;
  19. uint8_t font_height;
  20. bool rle;
  21. } tFont;
  22. #else
  23. typedef struct {
  24. const uint8_t *data;
  25. uint8_t image_width;
  26. int image_datalen;
  27. } tImage;
  28. typedef struct {
  29. uint8_t char_code;
  30. const tImage *image;
  31. } tChar;
  32. typedef struct {
  33. uint8_t length;
  34. const tChar *chars;
  35. uint8_t font_width;
  36. uint8_t font_height;
  37. bool rle;
  38. } tFont;
  39. #endif
  40. */
  41. typedef struct __PRGMTAG_ {
  42. const uint8_t *data;
  43. uint8_t image_width;
  44. int image_datalen;
  45. } tImage;
  46. typedef struct {
  47. uint8_t char_code;
  48. const tImage *image;
  49. } tChar;
  50. typedef struct {
  51. uint8_t length;
  52. const tChar *chars;
  53. uint8_t font_width;
  54. uint8_t font_height;
  55. bool rle;
  56. } tFont;
  57. #endif