Fix ESP32 ILI9341 using hardware SPI

This commit is contained in:
Theo Arends 2020-06-20 13:18:33 +02:00
parent 37886f33c8
commit 54e8e633e9
1 changed files with 1 additions and 4 deletions

View File

@ -90,11 +90,8 @@ void Ili9341InitDriver(void)
if (Settings.display_height != ILI9341_TFTHEIGHT) { if (Settings.display_height != ILI9341_TFTHEIGHT) {
Settings.display_height = ILI9341_TFTHEIGHT; Settings.display_height = ILI9341_TFTHEIGHT;
} }
#ifdef ESP8266
tft = new Adafruit_ILI9341(Pin(GPIO_SPI_CS), Pin(GPIO_SPI_DC)); tft = new Adafruit_ILI9341(Pin(GPIO_SPI_CS), Pin(GPIO_SPI_DC));
#else // ESP32
tft = new Adafruit_ILI9341(Pin(GPIO_SPI_CS), Pin(GPIO_SPI_DC), Pin(GPIO_SPI_MOSI), Pin(GPIO_SPI_CLK), -1, Pin(GPIO_SPI_MISO));
#endif
tft->begin(); tft->begin();
#ifdef USE_DISPLAY_MODES1TO5 #ifdef USE_DISPLAY_MODES1TO5