Skip to content

Commit

Permalink
Corrected addresses GT911 for ESP32_1732S019
Browse files Browse the repository at this point in the history
  • Loading branch information
rzeldent committed Dec 5, 2023
1 parent b0f8805 commit b4d2835
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/esp32_smartdisplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define ESP32_SMARTDISPLAY_H

#include <Arduino.h>
#include <esp32-hal-gpio.h>
#include <lvgl.h>

// Push button
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b4d2835

Please sign in to comment.