|
181 | 181 | #if ESP_PANEL_TOUCH_BUS_TYPE == ESP_PANEL_BUS_TYPE_I2C
|
182 | 182 |
|
183 | 183 | #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 |
185 | 185 | #if !ESP_PANEL_TOUCH_BUS_SKIP_INIT_HOST
|
186 | 186 | #define ESP_PANEL_TOUCH_I2C_CLK_HZ (400 * 1000)
|
187 | 187 | // Typically set to 400K
|
|
221 | 221 | #define ESP_PANEL_BACKLIGHT_IDLE_OFF (0) // 0: on, 1: off
|
222 | 222 |
|
223 | 223 | /* 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 |
225 | 225 | #endif /* ESP_PANEL_USE_BACKLIGHT */
|
226 | 226 |
|
227 | 227 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
228 | 228 | ///////////////////////////// Please update the following macros to configure the IO expander //////////////////////////
|
229 | 229 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
230 | 230 | /* 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 |
232 | 232 | #if ESP_PANEL_USE_EXPANDER
|
233 | 233 | /**
|
234 | 234 | * IO expander name.
|
|
240 | 240 | * If set to 1, the driver will skip to initialize the corresponding host. Users need to initialize the host in advance.
|
241 | 241 | * It is useful if other devices use the same host. Please ensure that the host is initialized only once.
|
242 | 242 | */
|
243 |
| -#define ESP_PANEL_EXPANDER_SKIP_INIT_HOST (0) // 0/1 |
| 243 | +#define ESP_PANEL_EXPANDER_SKIP_INIT_HOST (1) // 0/1 |
244 | 244 | /* 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) |
246 | 247 | #if !ESP_PANEL_EXPANDER_SKIP_INIT_HOST
|
247 |
| - #define ESP_PANEL_EXPANDER_HOST_ID (0) // Typically set to 0 |
248 | 248 | #define ESP_PANEL_EXPANDER_I2C_CLK_HZ (400 * 1000)
|
249 | 249 | // 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 |
252 | 252 | #define ESP_PANEL_EXPANDER_I2C_IO_SCL (18)
|
253 | 253 | #define ESP_PANEL_EXPANDER_I2C_IO_SDA (8)
|
254 | 254 | #endif
|
|
0 commit comments