espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.34k stars 7.2k forks source link

Reading ILI9341 registers (ILI9488, etc.) using the ESP-IDF SPI API - the response is always zero. [There is no answer on the forum!!!] (IDFGH-5395) #7141

Closed SinglWolf closed 2 years ago

SinglWolf commented 3 years ago

How to read ILI9341(ILI9488, etc) registers using ESP-IDF SPI API? The forum has a topic ILI9341 read registers in ESP-IDF - no answer! There is also a mention of this problem on stackoverflow.com Reading from an SPI bus using the ESP-IDF (ESP32) and an ILI9341 display adapter. Not getting meaningful data - there is no solution. For my Radiola-S2 project, reading the display controller registers is necessary to organize automatic detection of the connected display. My project also uses a touchscreen on the XPT2046 controller. All attempts to read XPT2046 registers are in vain. Zeros are returned. I am using ESP32-S2 and ESP-32. Why does register reading work correctly on the espressif/arduino-esp32 framework, but not on esp-idf?

nopnop2002 commented 2 years ago

My project also uses a touchscreen on the XPT2046 controller. All attempts to read XPT2046 registers are in vain. Zeros are returned.

Try this. https://github.com/nopnop2002/esp-idf-ili9340

SinglWolf commented 2 years ago

Try this.

What exactly should I try there? I already know that when using the display and the touchscreen on the same SPI bus, the SDO display pin (MISO) cannot be connected to the SPI bus. The pin must be free.