|
TinyGPU
|
#include <LCDBoardsCommon.h>

Public Member Functions | |
| 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) |
Common interface for a board that bundles a display, an optional touch controller, an I2S pin assignment, and an LED pin assignment behind one begin() call. All boards implementing this use RGB565 panels, so display() is pinned to that color type here (each concrete board still returns its own driver subclass via a covariant return type).
|
virtualdefault |
|
inlinevirtual |
The board's backlight GPIO pin, or -1 if unknown/not applicable. begin() already drives it digitally HIGH; this accessor exists so callers can reconfigure the same pin for PWM brightness control (e.g. via ledcAttach/ledcWrite) after begin().
Reimplemented in LCDBoardESP32S3_2_8Display, LCDBoardGuitionESP32S3_4_3Display, LCDBoardGuitionESP32_LVGL_2_4Display, LCDBoardGuitionESP32H4_4_3Display, and LCDBoardWeActMiniSTM32H750.
|
pure virtual |
Brings up the board's backlight/bus/display/touch. Returns false if the display or touch begin() fails.
Implemented in LCDBoardESP32S3_2_8Display, LCDBoardGuitionESP32S3_4_3Display, LCDBoardGuitionESP32_LVGL_2_4Display, LCDBoardGuitionESP32H4_4_3Display, LCDBoardDesktopSDL, LCDBoardWeActMiniSTM32H750, LCDBoardSTM32F723Discovery, and LCDBoardTFTeSPI.
|
pure virtual |
The board's display driver.
Implemented in LCDBoardESP32S3_2_8Display, LCDBoardGuitionESP32S3_4_3Display, LCDBoardGuitionESP32_LVGL_2_4Display, LCDBoardGuitionESP32H4_4_3Display, LCDBoardDesktopSDL, LCDBoardWeActMiniSTM32H750, LCDBoardSTM32F723Discovery, and LCDBoardTFTeSPI.
|
pure virtual |
Panel height in pixels.
Implemented in LCDBoardESP32S3_2_8Display, LCDBoardGuitionESP32S3_4_3Display, LCDBoardGuitionESP32_LVGL_2_4Display, LCDBoardGuitionESP32H4_4_3Display, LCDBoardDesktopSDL, LCDBoardWeActMiniSTM32H750, LCDBoardSTM32F723Discovery, and LCDBoardTFTeSPI.
|
pure virtual |
The board's I2S/PA pin assignment.
Implemented in LCDBoardESP32S3_2_8Display, LCDBoardGuitionESP32S3_4_3Display, LCDBoardGuitionESP32_LVGL_2_4Display, LCDBoardGuitionESP32H4_4_3Display, LCDBoardDesktopSDL, LCDBoardWeActMiniSTM32H750, LCDBoardSTM32F723Discovery, and LCDBoardTFTeSPI.
|
pure virtual |
The board's LED pin assignment.
Implemented in LCDBoardESP32S3_2_8Display, LCDBoardGuitionESP32S3_4_3Display, LCDBoardGuitionESP32_LVGL_2_4Display, LCDBoardGuitionESP32H4_4_3Display, LCDBoardDesktopSDL, LCDBoardWeActMiniSTM32H750, LCDBoardSTM32F723Discovery, and LCDBoardTFTeSPI.
|
inline |
Copies this board's I2S pins into an audio_tools-style I2SConfig (any type exposing pin_bck/pin_ws/pin_data/pin_data_rx).
|
pure virtual |
The board's touch controller, or nullptr if none is wired up.
Implemented in LCDBoardESP32S3_2_8Display, LCDBoardGuitionESP32S3_4_3Display, LCDBoardGuitionESP32_LVGL_2_4Display, LCDBoardGuitionESP32H4_4_3Display, LCDBoardDesktopSDL, LCDBoardWeActMiniSTM32H750, LCDBoardSTM32F723Discovery, and LCDBoardTFTeSPI.
|
pure virtual |
Panel width in pixels.
Implemented in LCDBoardESP32S3_2_8Display, LCDBoardGuitionESP32S3_4_3Display, LCDBoardGuitionESP32_LVGL_2_4Display, LCDBoardGuitionESP32H4_4_3Display, LCDBoardDesktopSDL, LCDBoardWeActMiniSTM32H750, LCDBoardSTM32F723Discovery, and LCDBoardTFTeSPI.