Closed sstojos closed 7 months ago
Hi
The buffersize is for now in the file smartdisplay.h, you can change this.
// LVGL lines buffered
Maybe this needs to be a define somewhere...
This is a project still in the startup phase and currently I'm the only one working on it. So suggestions and bugs are welcome. There is still a lot to parametrize, like to Pickel clock (PCLK) (that's quite conservative) buffers etc... Other libraries life GFX are marvels and kudo's for the people that keep them up to date and add new displays. However, It is full of trickery and optimizations that are difficult to understand. I try to make a community to have these displays supported with as little effort as possible while maintaining a low memory footprint and standard drivers. This turns out to be difficult as there are multiple versions of the same boards out there.
You can take a look at the https://github.com/rzeldent/platformio-espressif32-sunton/tree/develop repository to see what needs to be configured. Maybe you can tweak your display....
Hi Stojos,
Speed is indeed a bit slow on the 8048S043C. Increasing the pixel buffer does not help much. Increasing the PCLK creates glitching... And indeed GT911 does not function. Schematics are hard to find but think the I2C values are correct. Added to the todo list...
Has been an improvement on the speed; quite an improvement using SPI ram. Take a look if this at least removes the speed impediment. Is currently on the develop branch
The values for the I2C GT911 are correct. I looked at my board again and noticed it was a resistive version. So the touch test I did before was logical it did not work.
Compiling the -R variant worked immediately. Could you try to compile that one? Can you make a picture of the back of the board to check the touch version?
Speed issue should be solved. SPI ram is used for S3 boards.
Hi,
I like where this project is going. I managed to convert my very complex lvgl project very quickly and get compiled and running on 8048S043C board.
Unfortunately I found that config for board 8048S043C is too slow and CPU utilization is too high with this lib.
I hope that it is only config that is not properly optimized and that it will be fixed at some point so that I can start using it at some point.
Also touch is not working. I did not have time to investigate why. I can see this library uses the correct chip GT911 for this board.
I use SPIFFS and this lib board config changed the definition from default to minimum. I had to uncomment this to get my already formatted SPIFFS mountable that uses default config.
I have copied bellow my code for this board. Maybe this can help to clarify if I can achieve the same speed with this lib.
Cheers.
my platformio.ini :
Here is how I initialize driver (GFX library).
Here is how display flushing and touch read are implemented:
And finally here is how I initialize lvgl :