ESP_ERROR_CHECK(esp_lcd_touch_new_spi_xpt2046(tp_io_handle, &tp_cfg, &tp)); 1. 我这里是参考stmpe610的方法添加了宏。 首先在main函文件夹下的”Kfconfig.projbuild“的“EXAMPLE_LCD_TOUCH_CONTROLLER“选项中添加我们自己的触摸ic:XTP2046 在“spi_lcd_touch_example_main.c”文件中出现“STMPE610”...
#if CONFIG_EXAMPLE_LCD_TOUCH_ENABLED #if CONFIG_EXAMPLE_LCD_TOUCH_CONTROLLER_STMPE610 // 自己添加的条件编译 esp_lcd_panel_io_handle_t tp_io_handle = NULL; esp_lcd_panel_io_spi_config_t tp_io_config = ESP_LCD_TOUCH_IO_SPI_STMPE610_CONFIG(EXAMPLE_PIN_NUM_TOUCH_CS); // Attach the ...
@@ -60,23 +60,23 @@ esp_err_t esp_lcd_touch_new_i2c_cst816s(const esp_lcd_panel_io_handle_t io, cons if (cst816s->config.int_gpio_num != GPIO_NUM_NC) { const gpio_config_t int_gpio_config = { .mode = GPIO_MODE_INPUT, .intr_type = GPIO_INTR_NEGEDGE, .pin_bit_mask...
components/lcd/esp_lcd_gc9a01;components/lcd/esp_lcd_ili9341;components/lcd/esp_lcd_ra8875;components/lcd_touch/esp_lcd_touch_stmpe610;components/lcd/esp_lcd_sh1107;components/lcd/esp_lcd_st7796;components/lcd/esp_lcd_gc9503;components/lcd/esp_lcd_ssd1681;components/lcd/esp_lcd_ili9881c; ...
CONFIG_SOC_LCDCAM_SUPPORTED=y CONFIG_SOC_MCPWM_SUPPORTED=y CONFIG_SOC_DEDICATED_GPIO_SUPPORTED=y CONFIG_SOC_CACHE_SUPPORT_WRAP=y CONFIG_SOC_ULP_SUPPORTED=y CONFIG_SOC_ULP_FSM_SUPPORTED=y CONFIG_SOC_RISCV_COPROC_SUPPORTED=y CONFIG_SOC_BT_SUPPORTED=y CONFIG_SOC_USB_OTG_SUPPORTED=...
CONFIG_ESPTOOLPY_BAUD_OTHER_VAL=115200 # CONFIG_ESPTOOLPY_NO_STUB is not set # CONFIG_ESPTOOLPY_OCT_FLASH is not set CONFIG_ESPTOOLPY_FLASHMODE_QIO=y # CONFIG_ESPTOOLPY_FLASHMODE_QOUT is not set # CONFIG_ESPTOOLPY_FLASHMODE_DIO is not set # CONFIG_ESPTOOLPY_FLASHMODE_DO...
M5堆叠单元LCD M5Stack 原子显示器 触摸屏 I2C FT5x06(FT5206、FT5306、FT5406、FT6206、FT6236、FT6336、FT6436) I2C GSLx680 (GSL1680) I2C GT911 I2C NS2009 I2C TT21xxx (TT21100) SPI XPT2046 SPI STMPE610 如何配置的示例在src/lgfx_user中。
spi_bus_initialize(HSPI_HOST, &bus, 1); assert(ret == ESP_OK); spi_device_interface_config_t dev = { .clock_speed_hz = 9000000, .mode = 0, .spics_io_num = 5, .queue_size = 1, .flags = 0, .pre_cb = NULL}; ret = spi_bus_add_device(HSPI_HOST, &dev, &__spi); ...
タッチパネル TouchScreens (only ESP32) I2C FT5x06 / FT6x36 I2C GT911 SPI XPT2046 SPI STMPE610 対応機種についてはsrc/lgfx/panelをご参照ください。 接続するピンの初期設定はsrc/LovyanGFX.hppにあります。 上記対応機種とコマンド体系の類似したLCDパネルであれば対応可能ですが、当方で...
* - STMPE610 */ Expand Down Expand Up @@ -242,7 +251,7 @@ Here are some important macros for the **LCD Touch**: #define ESP_PANEL_LCD_TOUCH_INT_LEVEL (0) ``` Here are some important macros for the **backlight**: * Here are some important macros for the **backlight**...