whitecatboard / Lua-RTOS-ESP32

Lua RTOS for ESP32
Other
1.18k stars 222 forks source link

Running gdisplay.attach in a file puts garbage on top rows of tft screen #418

Closed TotallyNotSethP closed 1 year ago

TotallyNotSethP commented 1 year ago

PXL_20220830_051018746 MP

This doesn't occur when running gdisplay.attach in a regular file.

TotallyNotSethP commented 1 year ago

Also you can't clear the garbage unless you reboot the system

the0ne commented 1 year ago

I don't have such a piece of hardware. So I can't reproduce.

TotallyNotSethP commented 1 year ago

Ok a temporary workaround is to run gdisplay.attach in a regular file, then dofile from system.lua

TotallyNotSethP commented 1 year ago

Update: it now shows garbage no matter what file you run the attach command in...

TotallyNotSethP commented 1 year ago

This might be the same issue as https://forum.lvgl.io/t/random-colored-lines-in-display-gc9a01/4545

TotallyNotSethP commented 1 year ago

It works fine from the command line

TotallyNotSethP commented 1 year ago

Oh, and it works now... very inconsistent behaviour

TotallyNotSethP commented 1 year ago

In a shocking new development, i cant put anything in the top two rows anymore. {0,0} is {0,2} on the actual screen

TotallyNotSethP commented 1 year ago

I suspect this may just be an issue with the buffer being two rows down from where it should be

TotallyNotSethP commented 1 year ago

@the0ne Do you know where the interface code is for the ST7735 1.44" green tab... I want to try to fix this issue

the0ne commented 1 year ago

That would be

components/sys/drivers/st7735.c
components/sys/drivers/st7735.h

I guess.

the0ne commented 1 year ago

@TotallyNotSethP did you finally find a solution? Feel free to reopen in case of questions or create a PR if you want to share your solution with others.