ESP32 Animated GIF Fails when loaded from SD card #104
-
Moving on from the Seeeduino XIAO, I've gotten "ImgViewerAnimatedGIF" working on an ESP32 dev board w/ 4MB PSRAM. Now when I put the images onto an SD card, it will load the GIF, display one frame and error out. To attempt again, one must remove the SD card, reset the ESP32 board and re-insert the SD card. It never plays more than a single frame, usually with 'tears' in the image display (scrambled artifacts that are not in the actual GIF). It matters not whether using the included GIFs or cropped and optimized other GIFS. Here are the changes I've made to the example sketch (from commit 57a7cb1): Line 56-70;
Lines 123-127;
Lines 146-150;
Loading from the onboard SPIFFS memory produces on the console "GIF video start" and the animation runs.
I can run any number of other SD card sketches that read and write via the ESP32 board I have, it's just the animated GIFs that seems to have an issue when playing. NOTE * A nearly identical thing happens with the other Img exmaples as well when reading from the SD card. I am using a new SanDisk Ultra 32GZB Class 10 SDHC card, if that makes any difference. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If you want share SD and display with same SPI, you need to use individual CS pin for each device. You may find more detail in this example code: |
Beta Was this translation helpful? Give feedback.
If you want share SD and display with same SPI, you need to use individual CS pin for each device. You may find more detail in this example code:
https://github.com/moononournation/RGB565_video/blob/master/SD_GIF_video/SD_GIF_video.ino