Closed IanSC closed 10 months ago
Hi Ian,
Yes, this is because the screen is refreshed continuously and think saving to the EEPROM might cause these glitches. Haven't tried it yet but maybe setting ST7262_PANEL_CONFIG_FLAGS_RELAX_ON_IDLE to 1 might help? Maybe?
Hi @rzeldent ,
The example I made is to get the glitch continuously for video. It also happens if the time is changed to 10 sec interval or in a regular app.
Any tips on where I can find / where to set the flag? I ran:
grep -r 'FLAGS_RELAX_ON_IDLE' .
in: ~/.platformio, esp32_smartdisplay, lvgl
could not find any terms close to ST7262_PANEL_CONFIG_FLAGS_RELAX_ON_IDLE
Thanks,
Oh yea, it is in de json of the board, in the boards directory
In File: esp32-8048S070C.json
Section: extra_flags
Added: "-DST7262_PANEL_CONFIG_FLAGS_RELAX_ON_IDLE=1",
still same glitch.
I also tried:
"-DST7262_PANEL_CONFIG_FLAGS_RELAX_ON_IDLE=1",
"-DST7796_PANEL_CONFIG_FLAGS_RELAX_ON_IDLE=1",
"-DST7789_PANEL_CONFIG_FLAGS_RELAX_ON_IDLE=1",
"-DRGB_PANEL_CONFIG_FLAGS_RELAX_ON_IDLE=1",
Just in case, since it's most similar to the driver's name in your library. Still got the glitch.
Hi Ian,
Thanks for the code to reproduce it. I looked at it and think the PCLK was a bit on the edge. I updated the boards to have a PCLK of 12M instead of 16M.
Take a look at the develop branch. No glitching anymore. Thanks for bringing this up!
Hi @rzeldent,
Tried it and it works now. Even the colors and text are working.
However the screen is 180 degrees flipped,
so I changed TOUCH_SWAP_X
and TOUCH_SWAP_Y
I'll do some futher tests and close this issue in a few days.
Thanks again.
For other noobs like me:
My .gitmodules is not properly configured. So just downloaded:
https://github.com/rzeldent/platformio-espressif32-sunton
and placed the files in boards
folder.
After I compiled, I got missing lvgl_touch_init()
not linked error.
https://github.com/rzeldent/esp32-smartdisplay.git
from lib_deps =
in platformio.ini
..pio/libdeps/<<MY-PROJECT>>/esp32_smartdisplay/library.json
.pio
folder will have the same effect, but will redownload everything.I thought the touch was not working, so I touched all over the screen. Turns out it was just flipped.
To fix:
esp32-8048S070C.json
inside board folderesp32-8048S070C-flipped.json
true
to false
in my case:
"'-D TOUCH_SWAP_X=false'",
"'-D TOUCH_SWAP_Y=false'",
board = esp32-8048S070C-flipped
So guys, again, let's support or buy this guy a beer, without his efforts these boards will be useless or extremely difficult to use. Looking at you Sunton.
Horizontal sections of the screen jumps a bit from left to right randomly when saving to EEPROM.
It does not happen all the time. Sometimes it's the whole screen, but usually just a horizontal slice at the bottom. In case it's a hardware conflict, is there a way to time the eeprom save operation? eg. save right after the end of a full screen update
https://github.com/rzeldent/esp32-smartdisplay/assets/8453489/c92b2a22-b2e5-4eb4-9cca-70fa3f7c489a
Code for the glitch:
None of what I tried worked: