Skip to content

Commit dd5d725

Browse files
authored
Update ESP32_S3_Touch_LCD_4.3.h
1 parent 443bda0 commit dd5d725

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/board/waveshare/ESP32_S3_Touch_LCD_4.3.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
#if ESP_PANEL_TOUCH_BUS_TYPE == ESP_PANEL_BUS_TYPE_I2C
182182

183183
#define ESP_PANEL_TOUCH_BUS_HOST_ID (0) // Typically set to 0
184-
#define ESP_PANEL_TOUCH_I2C_ADDRESS (0x14) // For GT911, there are two addresses: 0x5D(default) and 0x14
184+
#define ESP_PANEL_TOUCH_I2C_ADDRESS (0) // For GT911, there are two addresses: 0x5D(default) and 0x14
185185
#if !ESP_PANEL_TOUCH_BUS_SKIP_INIT_HOST
186186
#define ESP_PANEL_TOUCH_I2C_CLK_HZ (400 * 1000)
187187
// Typically set to 400K
@@ -221,14 +221,14 @@
221221
#define ESP_PANEL_BACKLIGHT_IDLE_OFF (0) // 0: on, 1: off
222222

223223
/* Set to 1 if use PWM for brightness control */
224-
#define ESP_PANEL_LCD_BL_USE_PWM (1) // 0/1
224+
#define ESP_PANEL_LCD_BL_USE_PWM (0) // 0/1
225225
#endif /* ESP_PANEL_USE_BACKLIGHT */
226226

227227
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
228228
///////////////////////////// Please update the following macros to configure the IO expander //////////////////////////
229229
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
230230
/* Set to 0 if not using IO Expander */
231-
#define ESP_PANEL_USE_EXPANDER (0) // 0/1
231+
#define ESP_PANEL_USE_EXPANDER (1) // 0/1
232232
#if ESP_PANEL_USE_EXPANDER
233233
/**
234234
* IO expander name.
@@ -240,15 +240,15 @@
240240
* If set to 1, the driver will skip to initialize the corresponding host. Users need to initialize the host in advance.
241241
* It is useful if other devices use the same host. Please ensure that the host is initialized only once.
242242
*/
243-
#define ESP_PANEL_EXPANDER_SKIP_INIT_HOST (0) // 0/1
243+
#define ESP_PANEL_EXPANDER_SKIP_INIT_HOST (1) // 0/1
244244
/* IO expander parameters */
245-
#define ESP_PANEL_EXPANDER_I2C_ADDRESS (0x24)
245+
#define ESP_PANEL_EXPANDER_HOST_ID (0) // Typically set to 0
246+
#define ESP_PANEL_EXPANDER_I2C_ADDRESS (0x20)
246247
#if !ESP_PANEL_EXPANDER_SKIP_INIT_HOST
247-
#define ESP_PANEL_EXPANDER_HOST_ID (0) // Typically set to 0
248248
#define ESP_PANEL_EXPANDER_I2C_CLK_HZ (400 * 1000)
249249
// Typically set to 400K
250-
#define ESP_PANEL_EXPANDER_I2C_SCL_PULLUP (0) // 0/1
251-
#define ESP_PANEL_EXPANDER_I2C_SDA_PULLUP (0) // 0/1
250+
#define ESP_PANEL_EXPANDER_I2C_SCL_PULLUP (1) // 0/1
251+
#define ESP_PANEL_EXPANDER_I2C_SDA_PULLUP (1) // 0/1
252252
#define ESP_PANEL_EXPANDER_I2C_IO_SCL (18)
253253
#define ESP_PANEL_EXPANDER_I2C_IO_SDA (8)
254254
#endif

0 commit comments

Comments
 (0)