How can I display different gifs on my OLED?

I have a 0.96inch OLED Display Module 128X64 SSD1306, and I want to use either Arduino or ESP to display different gifs. How can I swap between displaying gif 1 and gif 2? Buttons, touch pads, whatever works.

Probably just a coding problem. Is there a guide anywhere? Thanks! :slight_smile: