Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with spi_lcd_touch_example (IDFGH-14945) #15654

Closed
ManelCS opened this issue Mar 26, 2025 · 1 comment
Closed

Problems with spi_lcd_touch_example (IDFGH-14945) #15654

ManelCS opened this issue Mar 26, 2025 · 1 comment
Assignees
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@ManelCS
Copy link

ManelCS commented Mar 26, 2025

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:

Image

#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));

@github-actions github-actions bot changed the title Problems with spi_lcd_touch_example Problems with spi_lcd_touch_example (IDFGH-14945) Mar 26, 2025
@espressif-bot espressif-bot added the Status: Opened Issue is new label Mar 26, 2025
@suda-morris
Copy link
Collaborator

suda-morris commented Mar 27, 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 :)

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Opened Issue is new labels Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

3 participants