prenticedavid / AnimatedGIFs_SD

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

Init and deinit animation process #5

Open Voha888 opened 4 years ago

Voha888 commented 4 years ago

Hello! I added Your library to my sketch. I transferred all the contents of loop () to my function. But after exiting the function, the ESP32 just freezes. I tried GifDecoder <GIFWIDTH, 320, 12> decoder; move from the global area to the function, but then a bootloop occurs. Do you have an example of how you can play the animation and then use the display functions in the usual way? Maybe I need to delete some class instances from memory?