From e860b85eaa02a51562d6b91024783f814cf7f61a Mon Sep 17 00:00:00 2001 From: Rene Zeldenthuis Date: Sun, 10 Dec 2023 20:34:50 +0100 Subject: [PATCH] TOUCH_ROT_SWAP_X/Y to false --- include/esp32_smartdisplay.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/esp32_smartdisplay.h b/include/esp32_smartdisplay.h index b665811..1b2878b 100644 --- a/include/esp32_smartdisplay.h +++ b/include/esp32_smartdisplay.h @@ -294,6 +294,8 @@ #define GT911_I2C_CONFIG {.mode=I2C_MODE_MASTER,.sda_io_num=19,.scl_io_num=20,.sda_pullup_en=GPIO_PULLUP_ENABLE,.scl_pullup_en=GPIO_PULLUP_ENABLE,.master={.clk_speed=400000}} #define GT911_IO_I2C_CONFIG {.dev_addr=ESP_LCD_TOUCH_IO_I2C_GT911_ADDRESS,.control_phase_bytes=1,.lcd_cmd_bits=16,.flags={.disable_control_phase=1}} #define GT911_TOUCH_CONFIG {.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_38,.int_gpio_num=GPIO_NUM_NC} +#define TOUCH_ROT_SWAP_X false +#define TOUCH_ROT_SWAP_Y false #endif #endif #endif @@ -328,6 +330,8 @@ #define GT911_I2C_CONFIG {.mode=I2C_MODE_MASTER,.sda_io_num=19,.scl_io_num=20,.sda_pullup_en=GPIO_PULLUP_ENABLE,.scl_pullup_en=GPIO_PULLUP_ENABLE,.master={.clk_speed=400000}} #define GT911_IO_I2C_CONFIG {.dev_addr=ESP_LCD_TOUCH_IO_I2C_GT911_ADDRESS,.control_phase_bytes=1,.lcd_cmd_bits=16,.flags={.disable_control_phase=1}} #define GT911_TOUCH_CONFIG {.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_38,.int_gpio_num=GPIO_NUM_NC} +#define TOUCH_ROT_SWAP_X false +#define TOUCH_ROT_SWAP_Y false #endif #endif #endif @@ -361,6 +365,8 @@ #define GT911_I2C_CONFIG {.mode=I2C_MODE_MASTER,.sda_io_num=19,.scl_io_num=20,.sda_pullup_en=GPIO_PULLUP_ENABLE,.scl_pullup_en=GPIO_PULLUP_ENABLE,.master={.clk_speed=400000}} #define GT911_IO_I2C_CONFIG {.dev_addr=ESP_LCD_TOUCH_IO_I2C_GT911_ADDRESS,.control_phase_bytes=1,.lcd_cmd_bits=16,.flags={.disable_control_phase=1}} #define GT911_TOUCH_CONFIG {.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_38,.int_gpio_num=GPIO_NUM_NC} +#define TOUCH_ROT_SWAP_X false +#define TOUCH_ROT_SWAP_Y false #endif #endif #endif @@ -394,6 +400,8 @@ #define GT911_I2C_CONFIG {.mode=I2C_MODE_MASTER,.sda_io_num=19,.scl_io_num=20,.sda_pullup_en=GPIO_PULLUP_ENABLE,.scl_pullup_en=GPIO_PULLUP_ENABLE,.master={.clk_speed=400000}} #define GT911_IO_I2C_CONFIG {.dev_addr=ESP_LCD_TOUCH_IO_I2C_GT911_ADDRESS,.control_phase_bytes=1,.lcd_cmd_bits=16,.flags={.disable_control_phase=1}} #define GT911_TOUCH_CONFIG {.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_38,.int_gpio_num=GPIO_NUM_NC} +#define TOUCH_ROT_SWAP_X false +#define TOUCH_ROT_SWAP_Y false #endif #endif #endif