TinyGPU
Loading...
Searching...
No Matches
Public Member Functions | List of all members
LCDBoardGuitionESP32_LVGL_2_4Display Class Reference

"ESP32 Arduino LVGL WiFi&Bluetooth Development Board, 2.4" LCD TFT Module" - ILI9341 SPI TFT + CST816S capacitive touch, no PSRAM. (ESP32-2432S028R) - also named ESP32 Cheap Yellow Diplay More...

#include <LCDBoardsESP32.h>

Inheritance diagram for LCDBoardGuitionESP32_LVGL_2_4Display:
Inheritance graph
[legend]
Collaboration diagram for LCDBoardGuitionESP32_LVGL_2_4Display:
Collaboration graph
[legend]

Public Member Functions

bool begin () override
 
size_t width () const override
 Panel width in pixels.
 
size_t height () const override
 Panel height in pixels.
 
ILI9341Driver< RGB565 > & display () override
 The board's display driver.
 
TouchDriver * touch () override
 The board's touch controller.
 
const I2SPins & i2s () const override
 Analog-DAC audio on this board - every I2SPins field is -1.
 
const LEDPins & led () const override
 The board's LED pin assignment.
 
int8_t backlightPin () const override
 The board's backlight GPIO pin.
 
- Public Member Functions inherited from LCDBoard
virtual ~LCDBoard ()=default
 
virtual bool begin ()=0
 
virtual size_t width () const =0
 Panel width in pixels.
 
virtual size_t height () const =0
 Panel height in pixels.
 
virtual DisplayDriver< RGB565 > & display ()=0
 The board's display driver.
 
virtual TouchDriver * touch ()=0
 The board's touch controller, or nullptr if none is wired up.
 
virtual const I2SPins & i2s () const =0
 The board's I2S/PA pin assignment.
 
virtual const LEDPins & led () const =0
 The board's LED pin assignment.
 
virtual int8_t backlightPin () const
 
template<typename I2SConfig >
void setI2SPins (I2SConfig &cfg)
 

Detailed Description

"ESP32 Arduino LVGL WiFi&Bluetooth Development Board, 2.4" LCD TFT Module" - ILI9341 SPI TFT + CST816S capacitive touch, no PSRAM. (ESP32-2432S028R) - also named ESP32 Cheap Yellow Diplay

This is the same board pinout TinyGPU's own examples (e.g. examples/color-test) are tested against.

Display: ILI9341, 240x320, SPI - CS=15 DC=2 SCK=14 MOSI=13 MISO=12 RST=-1 BL=27. Touch: CST816S, I2C - SDA=33 SCL=32 IRQ=36 (no RST pin wired). Audio: built-in mono amplifier driven from the ESP32's internal DAC (analog output, not I2S) - i2s() is all -1 on this board. LED: discrete RGB LED (3 separate GPIOs, active low) - R=4 G=16 B=17.

Note
Audio setup: this board has no I2S bus at all (i2s().isValid() is false) - use audio_tools::AnalogAudioStream instead of I2SStream. It drives the ESP32's built-in DAC pins (GPIO25/26) directly, so there are no board pins to pass in:

#include "AudioTools.h"

AnalogAudioStream out; auto cfg = out.defaultConfig(TX_MODE); cfg.sample_rate = 44100; cfg.channels = 1; cfg.bits_per_sample = 16; out.begin(cfg);

Member Function Documentation

◆ backlightPin()

int8_t backlightPin ( ) const
inlineoverridevirtual

The board's backlight GPIO pin.

Reimplemented from LCDBoard.

◆ begin()

bool begin ( )
inlineoverridevirtual

Sets up the backlight, SPI bus, display controller, and touch controller. Returns false if the display or touch begin() fails.

Implements LCDBoard.

◆ display()

ILI9341Driver< RGB565 > & display ( )
inlineoverridevirtual

The board's display driver.

Implements LCDBoard.

◆ height()

size_t height ( ) const
inlineoverridevirtual

Panel height in pixels.

Implements LCDBoard.

◆ i2s()

const I2SPins & i2s ( ) const
inlineoverridevirtual

Analog-DAC audio on this board - every I2SPins field is -1.

Implements LCDBoard.

◆ led()

const LEDPins & led ( ) const
inlineoverridevirtual

The board's LED pin assignment.

Implements LCDBoard.

◆ touch()

TouchDriver * touch ( )
inlineoverridevirtual

The board's touch controller.

Implements LCDBoard.

◆ width()

size_t width ( ) const
inlineoverridevirtual

Panel width in pixels.

Implements LCDBoard.


The documentation for this class was generated from the following file: