-
Notifications
You must be signed in to change notification settings - Fork 48
software rotation with rgb_display #196
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
Comments
That's an RGB display and you should clone the repo leaving it on the master branch and do not change to a different commit. I just got the new RGB driver up and running. |
Hi Kevin, that was the commit that you suggested me to use yesterday. Couldn't know it was outdated so fast ;-) Anyway, the compile throws this error:
ets_printf doesn't work though, as expected:
|
i just fixed it |
Now it's
|
OK, fixing the assumed typo the build compiles but rotation doesn't appear to work. After restarting the script, the REPL freezes and the display only occasionally flashes. Jst reflashed and re-ran my script without rotation. Same happens. Interestingly, the framebuffers are now created in MEMORY_INTERNAL and without only 1/10 of the max size:
Then the GT911 chip initializes and the system crashes. |
Ah I See you fixed the compile error. It does compile now, but when I run the script with no predefined framebuffers, the system crashes again after
When I try to preallocate buffers in size WH2 (768000 byte) in SPIRAM, I get |
delete your clone of the repo and clone it again. I actually just got the damned thing to actually work properly. allocate 2 frame buffers that are pass those to the RGB display driver. don't use rotate yet as I have not fully tested that portion of it. Going to be working on that later today. It is 1:45 AM where I am and it is time for me to get some rest. I will be up in 3-4 hours, possibly less. |
Excellent, it now compiles cleanly and sort of works. Although I can't tell if what does not work is in any way related to your code. Supposed not. The thing comes up and instead of displaying my keyboard and textarea, the entire display content flashes shortly and then degenerates to the first picture. The "H" in the top left corner is the first letter of the placeholder string. It seems that only the cursor area is being displayed. When I tap on the keyboard area, the display content is fully displayed albeit with the strange lines in the textarea. The strange lines disappear as soon as a character is typed in the corresponding text line. And the cursor is not visible which I believe should be the default. The code is straightforward I suppose:
But get some sleep first. :-) |
1 similar comment
Excellent, it now compiles cleanly and sort of works. Although I can't tell if what does not work is in any way related to your code. Supposed not. The thing comes up and instead of displaying my keyboard and textarea, the entire display content flashes shortly and then degenerates to the first picture. The "H" in the top left corner is the first letter of the placeholder string. It seems that only the cursor area is being displayed. When I tap on the keyboard area, the display content is fully displayed albeit with the strange lines in the textarea. The strange lines disappear as soon as a character is typed in the corresponding text line. And the cursor is not visible which I believe should be the default. The code is straightforward I suppose:
But get some sleep first. :-) |
This has been resolved with the latest commits. Kudos to Kevin and Thomas. |
How's the performance for you. Is it pretty good? |
@kdschlosser can't complain but then I have no moving widgets, just a keyboard and a textarea (it's going to be a scientific calculator after all). Maybe this will be different if I do certain things in the Wolfram cloud (symbolic integration) and display the returned images, don't know. When the screen bg_color is bright, like white, I sometimes see a faint flickering from top to bottom in landscape mode but I assume it's a hardware issue because. In _90 with pclk = 12 MHz and a dark theme I cannot see it right now. |
if you are getting a flicker when the display is idle with nothing on the display changing then it is going to be a limitation of the hardware and outside of my control. when nothing is being updated in LVGL the same frame buffer is getting sent over and over again and that is controlled by the ESP32 SDK and the hardware. |
what you can do is overclock the psram and flash spi bus to get some more speed out of it. we can try to do that for ya if you want.. let me know if you are interested in trying to do that. |
Thank you but don't bother for the moment. The current laggyness I encounter is probably more due to the keyboard and textarea handling and not related. |
I'm using the Elecrow 5" HMI display and would like to use it in portrait mode. Default is landscape. Is software rotation supposed to work in 6391c16 with rgb_display? If I do
display.set_rotation(lv.DISPLAY_ROTATION._90)
the display does not get rotated but crippled like shown in the photo. (this is from the hello world / slider example from the git repo README).

The text was updated successfully, but these errors were encountered: