Display driver for LVGL and LVGL_Glue in WipperSnapper.
More...
#include <ws_display_driver.h>
|
Adafruit_LvGL_Glue * | _glue |
| LVGL glue object.
|
|
Display driver for LVGL and LVGL_Glue in WipperSnapper.
◆ ws_display_driver()
ws_display_driver::ws_display_driver |
( |
displayConfig |
config | ) |
|
Creates a new WipperSnapper display driver object from a configuration struct.
- Parameters
-
config | Configuration struct., from FS.parseDisplayConfig(); |
◆ begin()
bool ws_display_driver::begin |
( |
| ) |
|
Initializes the display and the lvgl_glue driver.
- Returns
- True if LVGL_Glue began successfully, False otherwise.
◆ setResolution()
void ws_display_driver::setResolution |
( |
uint16_t |
displayWidth, |
|
|
uint16_t |
displayHeight |
|
) |
| |
Sets the display resolution, must be called BEFORE begin()!
- Parameters
-
displayWidth | The width of the display, in pixels. |
displayHeight | The height of the display, in pixels. |
◆ setRotation()
void ws_display_driver::setRotation |
( |
uint8_t |
rotationMode | ) |
|
Sets the display's rotation mode.
- Parameters
-
rotationMode | The index for rotation (0-3 inclusive). |
The documentation for this class was generated from the following files: