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

@@ -354,6 +354,8 @@ class LGFX : public lgfx::LGFX_Device
_panel_instance = new lgfx::Panel_ST7735;
else if (settingsMap[displayPanel] == st7735s)
_panel_instance = new lgfx::Panel_ST7735S;
else if (settingsMap[displayPanel] == ili9341)
_panel_instance = new lgfx::Panel_ILI9341;
auto buscfg = _bus_instance.config();
buscfg.spi_mode = 0;
@@ -379,6 +381,8 @@ class LGFX : public lgfx::LGFX_Device
if (settingsMap[touchscreenModule]) {
if (settingsMap[touchscreenModule] == xpt2046) {
_touch_instance = new lgfx::Touch_XPT2046;
} else if (settingsMap[touchscreenModule] == stmpe610) {
_touch_instance = new lgfx::Touch_STMPE610;
}
auto touch_cfg = _touch_instance->config();