prenticedavid / AnimatedGIFs_SD

Display GIFs from Flash, SD or SPIFFS
64 stars 14 forks source link

How to Play Gif from SD on esp32 with 2.4 inch TFT screen #8

Open Elita3 opened 2 years ago

Elita3 commented 2 years ago

I'm a fan of this type of projects, but I can't quite understand how to use this code, I would like to see if you can help me a little with a single example to run a GIF from SD with an ESP32. I hope you can help me, greetings.

Materials: ESP32 SD Card *Pantalla TFT 2,4"

davemaster commented 2 years ago

Greetings Step 1. Make that TFT display works with your esp32, wire after you already wired the SD CARD interface. Then, test TFT without SD CARD or even library of sd card

prenticedavid commented 2 years ago
  1. Please post a link to the actual screen that you have bought. e.g. Ebay sale page.

  2. Run all of the TFT_eSPI library examples to verify that your screen is working 100%.

  3. Run any SD Card examples to verify that your SD Card is ok.

  4. I imported and ran both AnimatedGIFs_SD_master and AnimatedGIFs_SD_adafruit_opt to the Arduino Web Editor.

  5. Both Branches seemed to run ok. i.e.

  6. BLUE background: GIF files stored on SD Card in /gifs directory

  7. MAGENTA background: GIF files stored in ESP32 PROGMEM (sketch memory)

  8. CYAN background: GIF files stored in SPIFFS memory

Obviously SPIFFS only works if you copy the /data directory to SPIFFS Obviously SD only works if you have files in /gifs directory.

As you can see from GitHub I have not worked on this project recently. And the version on my PC sketchbook is ahead of GitHub adafruit_opt Branch

Please let me know how you get on. There are serious problems with some GIF files.

bitbank2 has a much better library project.

David.

prenticedavid commented 2 years ago

I have added a new example sketch to my Fork of bitbank2's AnimatedGIF library https://github.com/prenticedavid/AnimatedGIF it is called "play_all_sd_ESP32_kbv.ino"

Copy some sample GIF files to /GIF directory on your SD Card. Or just point to your existing /GIFS directory (that you populated from my original sketch data directory)

prenticedavid commented 2 years ago

Bump.

@Elita3, you posted your Issue 9 days ago. davemaster (and I ) gave you some advice.

If you have solved your problems please say so. Then I can close the Issue.

David.