Here is a uLisp program to load a GIF image from memory or from an SD card, and display it on a TFT or OLED display:
When I was looking for Lisp applications to try out on the PicoCalc I remembered a GIF decoder I wrote a while ago, and tried porting it to the PicoCalc. In the process I ended up rewriting it to make it more elegant, and to ignore an unrecognised GIF extension that caused problems with some images I tried.
The GIF image decoder takes about 9500 Lisp objects, and will run on boards with about 15000 Lisp objects available, such as those based on the ATSAMD51, nRF52840, RP2040, RP2350, or ESP32-S3. I tested the program on the RP2040-based PicoCalc Lisp Machine shown above.
For more details and an explanation of how it works see: GIF image decoder.
Here’s the complete program: GIF image decoder program.