fix for warning - GPIO output gpio_num error - robustness other hardware

This commit is contained in:
Pablo Martikian 2023-01-05 12:08:05 -03:00
parent 360d152ca9
commit a4c9ac9ae8
1 changed files with 4 additions and 2 deletions

View File

@ -541,8 +541,10 @@ void TFT_eSPI::initBus(void) {
// Configure chip select for touchscreen controller if present
#ifdef TOUCH_CS
if (TOUCH_CS >= 0) {
pinMode(TOUCH_CS, OUTPUT);
digitalWrite(TOUCH_CS, HIGH); // Chip select high (inactive)
}
#endif
// In parallel mode and with the RP2040 processor, the TFT_WR line is handled in the PIO