Skip to content

Video playback on a 240x240 1.3" display from an SD card using the ESP32

License

Notifications You must be signed in to change notification settings

crystalfontz/CFAF240240A1-013T_Video

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video playback on a CFAF240240A1-013T

Description

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.

SD Video

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.

Hardware

Connecting the hardware

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!

Configure the project

make menuconfig
  • Set serial port under Serial Flasher Options.

Build and Flash

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-].)

Copyright info

The video being played is Big Buck Bunny (c) copyright 2008, Blender Foundation / www.bigbuckbunny.org

About

Video playback on a 240x240 1.3" display from an SD card using the ESP32

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages