nopnop2002 / esp-idf-st7789

ST7789 Driver for esp-idf
MIT License
234 stars 56 forks source link

Esp32S3: display remains black with backlight only #42

Open davidealessandrini88 opened 4 weeks ago

davidealessandrini88 commented 4 weeks ago

I've tried using code with ESP32-S3_WROOM1 kit but without success. GPIO23 is't present in esp32s3 so I changed it. I've tried different configurations but without results. No error on idf monitor but display remains black with backlight only.

I've used different displays, the same shown in the README guide.

To reproduce the problem just compile for ESP32-S3 and connect display in some way, I can't find a valid pins combination.

Thank you

nopnop2002 commented 4 weeks ago

GPIO23 is't present in esp32s3 so I changed it.

you are doing something wrong. This is the default for ESP32S3. There is No GPIO23. st7789_default

davidealessandrini88 commented 4 weeks ago

Hello, I apologize, but after so many tests I had lost sight of the initial configuration. So I tried again with the main configuration. I hooked up a Saleae to see the MOSI and CLK signals and they look good. With the Saleae connected, for once the test worked, I finally saw the display working. However it only happened once.

I tried to shorten the cables from board to display as much as possible but it didn't change, I couldn't get the display to work anymore.

I am now able to confirm that the software works, the problem is probably in the wiring.

I encourage you to provide advice/details, if you have any, on this topic.

Thank you

davidealessandrini88 commented 4 weeks ago

IMG_2601

nopnop2002 commented 3 weeks ago

Please make sure the power supply voltage is 3.3V driven.

Try pulling up the RES pin using a 100 ohm resistor.

davidealessandrini88 commented 3 weeks ago

I tried the pull-up but unfortunately it doesn't solve the problem. At work I will be able to use a good oscilloscope to better analyze the signals. In any case the software has no problems, this issue can be closed. Thanks for the advice, I hope I can get the device to work. Best regards David

nopnop2002 commented 3 weeks ago

From experience so far, the device seems to require a relatively large current at startup.

It may be effective to convert 5V to 3V3 with a regulator and supply it.