🤖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?

    Scheduled Pinned Locked Moved PRODUCTS
    4 Posts 3 Posters 3.3k Views
    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 Offline
      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 Offline
        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 Offline
          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!

          V 1 Reply Last reply Reply Quote 1
          • V Offline
            vonbothmer @Juan Carlos Climent
            last edited by

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

            @Juan-Carlos-Climent

            Can you please share the code?

            1 Reply Last reply Reply Quote 0

            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
            • First post
              Last post