diff --git a/include/esp32_smartdisplay.h b/include/esp32_smartdisplay.h index def4fdc..c938702 100644 --- a/include/esp32_smartdisplay.h +++ b/include/esp32_smartdisplay.h @@ -2,7 +2,6 @@ #define ESP32_SMARTDISPLAY_H #include -#include #include // Push button @@ -43,9 +42,9 @@ #define USES_GT911 #include "esp_lcd_touch_gt911.h" #define GT911_I2C_HOST 0 -#define GT911_I2C_CONFIG {.mode=I2C_MODE_MASTER,.sda_io_num=4,.scl_io_num=5,.sda_pullup_en=GPIO_PULLUP_ENABLE,.scl_pullup_en=GPIO_PULLUP_ENABLE,.master={.clk_speed=400000}} +#define GT911_I2C_CONFIG {.mode=I2C_MODE_MASTER,.sda_io_num=9,.scl_io_num=46,.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_26,.int_gpio_num=GPIO_NUM_25} +#define GT911_TOUCH_CONFIG {.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_3,.int_gpio_num=GPIO_NUM_8} #define TOUCH_ROT_NONE_SWAP_X false #define TOUCH_ROT_NONE_SWAP_Y false #endif