An ESP32-based project for playing video animations on an SSD1306 OLED display.
This project uses the Adafruit SSD1306 library for rendering graphics.
- Open the
.ino
file in the Arduino IDE. - Select the appropriate ESP32 board in Tools > Board.
- In Tools > Partition Scheme, select Custom to use the
partitions.csv
provided in the project. - Upload the sketch to your ESP32.
The project includes two pre-converted compressed video files (bitmap arrays):
- "Bad Apple"
- "Kanaria - Brain"
If you want to use another video:
- Extract video frames (e.g., using VLC Media Player).
- Use the provided
framestobin.py
script to convert the frames to a compressed bitmap array.- The output will be a
.bin
file.
- The output will be a
- Rename the generated
.bin
file tobitmaps.bin
. - Create a folder named
data
in the project directory and place thebitmaps.bin
file inside.
You will need two tools:
- mkspiffs (to create the SPIFFS partition)
- esptool (to flash the partition to the ESP32)
Run the following commands:
-
Create the SPIFFS partition:
mkspiffs -c data -p 256 -b 4096 -s 0x38fff4 data.bin
-
Flash the partition to your ESP32:
esptool -b 921600 write_flash 0x70000 data.bin
The readme was created through a translator using chat gpt, so there may be inaccuracies . If there are any problems there is always the Issues tab