Chop down tft-related loooong ifdefs chains (#10803)

* Chop down tft-related loooong ifdefs chains

* Fix accidental sweep-up of portduino into screen #ifdef refactor
This commit is contained in:
Jonathan Bennett
2026-06-29 21:23:25 -05:00
committed by GitHub
co-authored by GitHub
parent 8345c2b6a9
commit fd8ba4fa4e
34 changed files with 52 additions and 57 deletions
+1
View File
@@ -43,6 +43,7 @@
#define HAS_SCREEN 1 // Assume no screen present by default to prevent crash...
// ST7735S TFT LCD
#define HAS_SPI_TFT 1
#define ST7735S 1 // there are different (sub-)versions of ST7735
#define ST7735_CS -1
#define ST7735_RS 33 // DC
+1
View File
@@ -34,6 +34,7 @@
#define GPS_RX_PIN 16
#define GPS_TX_PIN 17
#define HAS_SPI_TFT 1
#define ILI9341_DRIVER
#define TFT_HEIGHT 240
#define TFT_WIDTH 320
+1
View File
@@ -52,6 +52,7 @@
#undef LED_STATE_ON
#undef LED_POWER
#define HAS_SPI_TFT 1
#define HAS_CST226SE 1
#define HAS_TOUCHSCREEN 1
// #define TOUCH_IRQ 35 // broken in this version of the lib 0.3.1
+1
View File
@@ -29,6 +29,7 @@
#define HAS_SCREEN 0
// Default SPI1 will be mapped to the display
#define HAS_SPI_TFT 1
#define ST7789_SDA 23
#define ST7789_SCK 18
#define ST7789_CS 5