Xinyuan-LilyGO / LilyGo-AMOLED-Series

LilyGo AMOLED Series
MIT License
88 stars 14 forks source link

Can't get Lvgl_Images.ino working on the T4-S3 #30

Closed richgain closed 1 month ago

richgain commented 1 month ago

I can get examples/Lvgl_Images/lvgl_images.ino to work on my T-Display-Amoled S3 Touch, but not on the T4-S3. I had to modify the code because I kept running out of memory. I can load six images into the S3 Touch and four images into the T4-S3. When I do this, the S3 displays the six images in a loop when touch the action button, but the T4-S3 only shows a black screen.

I can see in the void setup() section it says: // Only 1.91 Inch AMOLED board support

I assumed that this just referred to the action button, but I can't get the T4 to display any images at all. Is there any way to get this code working on the T4-S3?

Eventually, I am trying to get the T4-S3 to display a series of JPEG files stored on a microSD card in the SD slot.

lewisxhe commented 1 month ago

I can see that an error will be reported in Arduino IDE, because the partition table selected is app3M, which has exceeded 3M. Are you using Arduino IDE?

richgain commented 1 month ago

Yes, Arduino IDE.

lewisxhe commented 1 month ago

Here is an example of an SD card displaying a picture. Regarding ArduinoIDE, you can only reduce pictures and place them in Flash, or use platformio ImageDecoder

lewisxhe commented 1 month ago

I've added another example showing images from the SD card

richgain commented 1 month ago

Thanks Lewis. Both of these are really helpful.