Learn how to flash and get started with any ESP32 board here.
This project demonstrates how easy it is to play video with sound on the Waveshare ESP32-S3 RLCD 4.2-inch display using R1BBIT.
The device features a 400×300 reflective ST7305 display and an integrated ES8311 audio codec with speaker support. With R1BBIT, video and audio playback can be started with just a few lines of R1BASIC code.
The video is loaded directly from the R1BBIT server, eliminating the need to manually manage complex video decoding, display, and audio libraries.
This project shows how R1BBIT makes advanced multimedia features on ESP32 simple and accessible — no C/C++ programming or complex development environment required.
CONFIG
// ── Display: reflective 4.2" ST7305, 400x300 ──
DISPLAY_DRIVER ST7305
SPI_MOSI 12
SPI_CLK 11
SPI_FREQ 20000000
DISPLAY_CS 40
DISPLAY_DC 5
DISPLAY_RST 41
DISPLAY_W 400
DISPLAY_H 300
// ── I2C0: ES8311 0x18, ES7210 0x40, PCF85063 0x51, SHTC3 0x70 ──
I2C_SDA 13
I2C_SCL 14
I2C_FREQ 400000
// ── Audio: ES8311 codec, speaker through built-in amplifier ──
CODEC ES8311
CODEC_ADDR 0x18
CODEC_PA_PIN 46
AUDIO_OUT CODEC
AUDIO_IN CODEC
I2S_MCLK 16
I2S_BCLK 9
I2S_WS 45
I2S_DOUT 8
I2S_DIN 10
I2S_FREQ 16000
CODEC_PA_ACTIVE_LOW 0
END_CONFIG
// Initialize the display
DISPLAY_INIT
VIDEO_PLAY("@TOM",0,0,400,300,20) //Plays a previously uploaded video file from the R1BBIT server
AUDIO_VOLUME(80)
WHILE 1
PAUSE 1000
WEND
// End of infinite loop
Upload and run the program on the device.
