-
Notifications
You must be signed in to change notification settings - Fork 90
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
8048S070C Backlight does not turn on #130
Comments
I don't have the same board to test but I ran into a similar issue with an esp32-4848S040 Looking at the boot logs from the serial output I noticed
I found setting the backlight to 1 after void setup()
{
smartdisplay_init();
smartdisplay_lcd_set_backlight(1);
auto disp = lv_disp_get_default();
... Hope this helps. p.s. Thanks to @rzeldent for the great work on this library. |
Maybe this is related? rzeldent/esp32-smartdisplay-demo#21 |
The backlight is controlled using a the GPIO_BCKL (develop) or BCKL (main) pin. Would however be interesting to know why this does not work on some boards. I tested mine and cannot reproduce this. Some hints are:
Hope this goves some insights in troubleshooting. Please let me know if somethings pops up or is not correct! |
It seems the display has other backlight pins. I bought some of them last year 2023 and now some in february 2024. If it try to set backlight it turns to black. |
Hi Werde, That's possible, they do seem to change a bit the schematics. Some time ago I supported 2 versions of the esp32-8048S070 but one was dropped. Take a look in the Sunton defines to find the pins! |
Version: esp32-smartdisplay 2.0.5
Board: 8048S070C v1.3
Board Definition: esp32-8048S070C.json
The backlight does not turn on for this board when I try to compile esp32-smartdisplay-demo. If I use a flashlight, I can see the demo is running as expected.
I have to go to esp32_smartdisplay.h and modify the following start at line 8. I pulled these numbers from the 7.0inch_ESP32-8048S070 demo package. I'm not sure if they're a correct values because the demo package also had the red and blue GPIO pins swapped. PWM_BITS_BCKL was already set to 8.
When I compile it again, the backlight turns on and I can see the demo.
I have not tried to change the brightness once it's initialized.
I'm not sure if this is supposed to be set somewhere else. I have checked the board definition but I don't immediately see a flag that would set this option.
The text was updated successfully, but these errors were encountered: