From 1de67ae0db2c5353af71db8b87422a8c435c8858 Mon Sep 17 00:00:00 2001 From: Rene Zeldenthuis Date: Sun, 10 Dec 2023 20:55:32 +0100 Subject: [PATCH] Added missing touch for Resistive! --- include/esp32_smartdisplay.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/esp32_smartdisplay.h b/include/esp32_smartdisplay.h index 1b2878b..100a193 100644 --- a/include/esp32_smartdisplay.h +++ b/include/esp32_smartdisplay.h @@ -286,6 +286,8 @@ #define XPT2046_SPI_BUS_CONFIG {.mosi_io_num=11,.miso_io_num=13,.sclk_io_num=12,.quadwp_io_num=-1,.quadhd_io_num=-1} #define XPT2046_IO_SPI_CONFIG {.cs_gpio_num=38,.dc_gpio_num=-1,.spi_mode=SPI_MODE0,.pclk_hz=2000000,.trans_queue_depth=3,.lcd_cmd_bits=8,.lcd_param_bits=8} #define XPT2046_TOUCH_CONFIG {.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_NC,.int_gpio_num=GPIO_NUM_18} +#define TOUCH_ROT_SWAP_X false +#define TOUCH_ROT_SWAP_Y false #else #ifdef ESP32_4827S043C #define USES_GT911 @@ -322,6 +324,8 @@ #define XPT2046_SPI_BUS_CONFIG {.mosi_io_num=11,.miso_io_num=13,.sclk_io_num=12,.quadwp_io_num=-1,.quadhd_io_num=-1} #define XPT2046_IO_SPI_CONFIG {.cs_gpio_num=38,.dc_gpio_num=-1,.spi_mode=SPI_MODE0,.pclk_hz=2000000,.trans_queue_depth=3,.lcd_cmd_bits=8,.lcd_param_bits=8} #define XPT2046_TOUCH_CONFIG {.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_NC,.int_gpio_num=GPIO_NUM_18} +#define TOUCH_ROT_SWAP_X false +#define TOUCH_ROT_SWAP_Y false #else #ifdef ESP32_8048S043C #define USES_GT911