Play GIF only once

The GIF Animator example loops the GIF until DISPLAY_TIME_SECONDS. Is there a way to just play the GIF only once and then move on to next file? Thank you for any help!

Sorry. Nevermind. Saw an older post with solution:

1 Like

@nimbex if you’d like you can try my improved version of the animatedgifs library: GitHub - marcmerlin/AnimatedGIFs: Animated GIFs on Teensy, ESP8266, ESP32 on top of FastLED::NeoMatrix, SmartMatrix::GFX, and SmartMatrix, using Sdcard, SPIFFS, and FatFS (FFAT)
it has a file browser (prev next) over serial port or jump to number #, and better controls on how long to play/replay a gif

1 Like