Adafruit display (#3179)

* Use uint8_t instead of char in icon_bits

* Add Adafruit PiTFT support
This commit is contained in:
Jonathan Bennett
2024-02-08 16:29:15 -06:00
committed by GitHub
parent 996e72a816
commit 3b0169ba7a
6 changed files with 25 additions and 5 deletions

View File

@@ -150,7 +150,7 @@ static void drawIconScreen(const char *upperMsg, OLEDDisplay *display, OLEDDispl
// draw centered icon left to right and centered above the one line of app text
display->drawXbm(x + (SCREEN_WIDTH - icon_width) / 2, y + (SCREEN_HEIGHT - FONT_HEIGHT_MEDIUM - icon_height) / 2 + 2,
icon_width, icon_height, (const uint8_t *)icon_bits);
icon_width, icon_height, icon_bits);
display->setFont(FONT_MEDIUM);
display->setTextAlignment(TEXT_ALIGN_LEFT);