You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
also i change the line ESP_ERROR_CHECK(esp_lcd_new_panel_ili9341(io_handle, &panel_config, &panel_handle));
for ESP_ERROR_CHECK(esp_lcd_new_panel_st7789(io_handle, &panel_config, &panel_handle));
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Problems with spi_lcd_touch_example
Problems with spi_lcd_touch_example (IDFGH-14945)
Mar 26, 2025
I'm not familar with NHD-2.4-240320AF-CSXP, but from the picture, I don't know why you connect the "DCX" to the "SCL"? "SCL" is the SPI clock signal. "DCX" is the "Data/Command selection".
If you post such questions in the ESP32 Forum, you will get more help :)
I'm trying to follow this example
https://github.com/espressif/esp-idf/tree/master/examples/peripherals/lcd/spi_lcd_touch
with a ESP32-s3 and the display NHD-2.4-240320AF-CSXP but I only see the backlight on the screen. The connection is:
#define EXAMPLE_LCD_PIXEL_CLOCK_HZ (15 * 1000 * 1000)
#define EXAMPLE_LCD_BK_LIGHT_ON_LEVEL 1
#define EXAMPLE_LCD_BK_LIGHT_OFF_LEVEL !EXAMPLE_LCD_BK_LIGHT_ON_LEVEL
#define EXAMPLE_PIN_NUM_SCLK 14 // tft dcx
#define EXAMPLE_PIN_NUM_MOSI 47 // tft sda
#define EXAMPLE_PIN_NUM_MISO 38 // tft sdo
#define EXAMPLE_PIN_NUM_LCD_DC 11
#define EXAMPLE_PIN_NUM_LCD_RST 12 // tft resx
#define EXAMPLE_PIN_NUM_LCD_CS 45 // tft csx
#define EXAMPLE_PIN_NUM_BK_LIGHT 4
#define EXAMPLE_PIN_NUM_TOUCH_CS -1
also i change the line
ESP_ERROR_CHECK(esp_lcd_new_panel_ili9341(io_handle, &panel_config, &panel_handle));
for
ESP_ERROR_CHECK(esp_lcd_new_panel_st7789(io_handle, &panel_config, &panel_handle));
The text was updated successfully, but these errors were encountered: