nopnop2002 / esp-idf-st7789

ST7789 Driver for esp-idf
MIT License
260 stars 64 forks source link

Esp32S3: display remains black with backlight only #42

Open davidealessandrini88 opened 6 months ago

davidealessandrini88 commented 6 months 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 6 months 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 6 months 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 6 months ago

IMG_2601

nopnop2002 commented 5 months 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 5 months 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 5 months 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.

Abluee commented 4 months ago

GPIO23 is't present in esp32s3 so I changed it.esp23s3 中不存在 GPIO32,所以我更改了它。

you are doing something wrong.你做错了什么。 This is the default for ESP32S3.这是 ESP32S3 的默认设置。 There is No GPIO23.没有 GPIO23。 st7789_default

I encountered the same issue. However, instead of using the program configuration interface to modify the GPIO pins, I changed the #if 0 to #if 1 in the main.c code for the GPIO configuration used for debugging. After flashing, the program displayed normally. I suspect the issue might be due to the program not reading your GPIO configuration correctly. I hope this helps.

image
nopnop2002 commented 4 months ago

@Abluee

Once it works, I think it will work correctly even if you change it back.

arunyava commented 4 months ago

config Use these pin configuration in esp32s3 and use external power also .

nopnop2002 commented 4 months ago

@arunyava

You need an explanation as to what the problem is.

Pr47h4m commented 3 months ago

IMG_2601

Hello I am using ESP32-S3 and same display I am also encountering same issue as you Have you found any solution? Thanks

nopnop2002 commented 3 months ago

This may be improved by following the steps below.

  1. Pull up Reset with 100 ohms.

  2. Write firmware.

  3. Press the reset button several times.

PullUp-Register