How to Display an Animated GIF on M5Stack Screens Using Arduino C?
-
Hi everyone,
I'm working with an M5Stack Dial (ESP32-S3) and I want to display an animated GIF on its screen using Arduino C. I know that the M5Stack series supports images in formats like JPG and BMP, but I'm unsure about how to handle GIF animations properly.
I have a few questions:
What libraries should I use to decode and display a GIF frame by frame?
How should I store the GIF? (SPIFFS, LittleFS, external SD card, etc.)
What is the best way to update the screen efficiently without flickering?
If anyone has sample code or a guide on how to achieve this, I would really appreciate it!Thanks in advance!
-
@Juan-Carlos-Climent
you can refer to this example:
https://github.com/m5stack/M5GFX/blob/master/examples/Basic/drawImageData/drawImageData.ino -
@kuriko I've checked the link you sent me and adapted it to display an animated GIF. I used the Python script from M5 ( bin2code.py ) to generate a .h file and modified the example from M5GFX ( drawImageData.ino ). It works perfectly!
Thanks a lot!
-
@Juan-Carlos-Climent said in How to Display an Animated GIF on M5Stack Screens Using Arduino C?:
@kuriko I've checked the link you sent me and adapted it to display an animated GIF. I used the Python script from M5 ( bin2code.py ) to generate a .h file and modified the example from M5GFX ( drawImageData.ino ). It works perfectly!
Thanks a lot!
Can you please share the code?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login