Lua-RTOS-ESP32 icon indicating copy to clipboard operation
Lua-RTOS-ESP32 copied to clipboard

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

Open TotallyNotSethP opened this issue 2 years ago • 11 comments

PXL_20220830_051018746 MP

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

TotallyNotSethP avatar Aug 30 '22 05:08 TotallyNotSethP

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

TotallyNotSethP avatar Aug 30 '22 05:08 TotallyNotSethP

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

the0ne avatar Aug 30 '22 08:08 the0ne

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

TotallyNotSethP avatar Aug 30 '22 13:08 TotallyNotSethP

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

TotallyNotSethP avatar Aug 31 '22 02:08 TotallyNotSethP

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

TotallyNotSethP avatar Aug 31 '22 03:08 TotallyNotSethP

It works fine from the command line

TotallyNotSethP avatar Aug 31 '22 03:08 TotallyNotSethP

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

TotallyNotSethP avatar Aug 31 '22 03:08 TotallyNotSethP

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 avatar Aug 31 '22 04:08 TotallyNotSethP

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

TotallyNotSethP avatar Aug 31 '22 04:08 TotallyNotSethP

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

TotallyNotSethP avatar Sep 03 '22 17:09 TotallyNotSethP

That would be

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

I guess.

the0ne avatar Sep 05 '22 07:09 the0ne

@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.

the0ne avatar Dec 02 '22 13:12 the0ne