GIF OLED Converter
  • Python 80.5%
  • C++ 13.1%
  • Makefile 6.4%
Find a file
2026-04-11 17:59:05 +00:00
.gitignore initial commit 2026-04-11 17:59:05 +00:00
gif2c-oled.ino initial commit 2026-04-11 17:59:05 +00:00
gif2c.py initial commit 2026-04-11 17:59:05 +00:00
LICENSE initial commit 2026-04-11 17:59:05 +00:00
Makefile initial commit 2026-04-11 17:59:05 +00:00
README.md initial commit 2026-04-11 17:59:05 +00:00

GIF OLED Converter

Convert GIF to C array for SSD1306 (128x64).

Requirements

  • Python 3.10+ (Pillow)
  • arduino-cli (esp32:esp32:esp32s3)

Installation

Libraries

arduino-cli lib install "Adafruit SSD1306" "Adafruit GFX Library" "Adafruit BusIO"

Python Environment

python3 -m venv venv
source venv/bin/activate
pip install Pillow

Usage

Build Header

./gif2c.py --help
./gif2c.py <input.gif> [output.h] [--inv] [--ctr FLOAT] [--dtr {floyd,atkinson}]

Example (Atkinson):

./gif2c.py input.gif --dtr atkinson --ctr 1.2

Flash

make upload

Monitor

make monitor

License

MIT