🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to Display an Animated GIF on M5Stack Screens Using Arduino C?

    PRODUCTS
    2
    3
    489
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Juan Carlos Climent
      last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • kurikoK
        kuriko
        last edited by

        @Juan-Carlos-Climent
        you can refer to this example:
        https://github.com/m5stack/M5GFX/blob/master/examples/Basic/drawImageData/drawImageData.ino

        Good morning, and welcome to the Black Mesa Transit System.

        J 1 Reply Last reply Reply Quote 0
        • J
          Juan Carlos Climent @kuriko
          last edited by

          @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!

          1 Reply Last reply Reply Quote 1
          • First post
            Last post