Add initial support for CrowPanel ESP32 5.79” E-paper HMI (#6233)

This commit is contained in:
Mark Trevor Birss
2025-03-06 12:28:43 +02:00
committed by GitHub
parent e6a98b1d6b
commit f6a9e7d741
8 changed files with 1345 additions and 3 deletions

View File

@@ -73,6 +73,16 @@
#define FONT_LARGE FONT_LARGE_LOCAL // Height: 28
#endif
#if defined(CROWPANEL_ESP32S3_5_EPAPER)
#include "graphics/fonts/EinkDisplayFonts.h"
#undef FONT_SMALL
#undef FONT_MEDIUM
#undef FONT_LARGE
#define FONT_SMALL FONT_LARGE_LOCAL // Height: 30
#define FONT_MEDIUM FONT_LARGE_LOCAL // Height: 30
#define FONT_LARGE FONT_LARGE_LOCAL // Height: 30
#endif
#define _fontHeight(font) ((font)[1] + 1) // height is position 1
#define FONT_HEIGHT_SMALL _fontHeight(FONT_SMALL)