Content: fixed ESP_LCD_TOUCH_IO_I2C_FT5x06_CONFIG issue
This commit is contained in:
@ -98,14 +98,18 @@ private:
|
||||
},
|
||||
};
|
||||
esp_lcd_panel_io_handle_t tp_io_handle = NULL;
|
||||
esp_lcd_panel_io_i2c_config_t tp_io_config = ESP_LCD_TOUCH_IO_I2C_FT5x06_CONFIG();
|
||||
esp_lcd_panel_io_i2c_config_t tp_io_config = {};
|
||||
tp_io_config.dev_addr = ESP_LCD_TOUCH_IO_I2C_FT5x06_ADDRESS;
|
||||
tp_io_config.control_phase_bytes = 1;
|
||||
tp_io_config.dc_bit_offset = 0;
|
||||
tp_io_config.lcd_cmd_bits = 8;
|
||||
tp_io_config.flags.disable_control_phase = 1;
|
||||
tp_io_config.scl_speed_hz = 400 * 1000;
|
||||
ESP_ERROR_CHECK(esp_lcd_new_panel_io_i2c(i2c_bus_, &tp_io_config, &tp_io_handle));
|
||||
ESP_ERROR_CHECK(esp_lcd_touch_new_i2c_ft5x06(tp_io_handle, &tp_cfg, &tp));
|
||||
const lvgl_port_touch_cfg_t touch_cfg = {
|
||||
.disp = lv_display_get_default(),
|
||||
.handle = tp,
|
||||
};
|
||||
lvgl_port_touch_cfg_t touch_cfg = {};
|
||||
touch_cfg.disp = lv_display_get_default();
|
||||
touch_cfg.handle = tp;
|
||||
lvgl_port_add_touch(&touch_cfg);
|
||||
}
|
||||
void InitializeCamera() {
|
||||
|
||||
Reference in New Issue
Block a user