This example code plays back a video on the CFAF240240A1-013T from an SD Card. It was built using the ESP-IDF toolchain and Visual Studio Code. For step-by-step guide on how to use the toolchain, follow the link here.
Also, there's a new extension from Espressif that we haven't tested but will definitely look into, here.
To streamline the program, the video was preprocessed into a raw file. This allows us to read straight from the SD card and put the information directly on the screen. A link to the video file that was used (~805mb file size) can be found here.
- uSD Card
- uSD Card Holder
- This code does not use the quad spi capabilities at the moment
- ESP32 Dev Kit (we used a MELIFE DEVKITV1 but any should work)
- Wires
The following block of texts shows how the hardware was connected.
ESP | LCD | Description
-------+----+----------------------
GPIO15 | 13 | CS
GPIO16 | 15 | RESET
GPIO17 | 12 | D/C
GPIO13 | 10 | MOSI
GPIO14 | 09 | CLK
-------+----+----------------------
SD control lines
ESP | SD Description
-------+----------------------------
GPIO5 | CS
GPIO18 | PIN_NUM_CLK
GPIO19 | MISO
GPIO23 | MOSI
Don't forget to connect your power!
make menuconfig
- Set serial port under Serial Flasher Options.
Build the project and flash it to the board, then run monitor tool to view serial output:
make -j4 flash monitor
For a faster build and if the PC has eight cores, -j8 can be used instead of -j4.
(To exit the serial monitor, type Ctrl-]
.)
The video being played is Big Buck Bunny (c) copyright 2008, Blender Foundation / www.bigbuckbunny.org