15 #ifndef WIPPERSNAPPER_DISPLAY_H 16 #define WIPPERSNAPPER_DISPLAY_H 19 #include "provisioning/Config.h" 20 #include <Adafruit_LvGL_Glue.h> 21 #include <Adafruit_ST7789.h> 40 void setResolution(uint16_t displayWidth, uint16_t displayHeight);
48 Adafruit_ST7789 *_tft_st7789 =
nullptr;
49 uint16_t _displayWidth;
50 uint16_t _displayHeight;
56 #endif // WIPPERSNAPPER_DISPLAY_H void esp32_lvgl_acquire()
Acquires the LVGL_Glue lock.
Definition: ws_display_driver.cpp:134
bool begin()
Initializes the display and the lvgl_glue driver.
Definition: ws_display_driver.cpp:94
Class that provides storage and functions for the Adafruit IO Wippersnapper interface.
Definition: Wippersnapper.h:283
Display driver for LVGL and LVGL_Glue in WipperSnapper.
Definition: ws_display_driver.h:33
Adafruit_LvGL_Glue * _glue
LVGL glue object.
Definition: ws_display_driver.h:43
void setResolution(uint16_t displayWidth, uint16_t displayHeight)
Sets the display resolution, must be called BEFORE begin()!
Definition: ws_display_driver.cpp:82
void esp32_lvgl_release()
Releases the LVGL_Glue lock.
Definition: ws_display_driver.cpp:141
~ws_display_driver()
Deletes a new WipperSnapper display driver object.
Definition: ws_display_driver.cpp:48
LV_FONT_DECLARE(errorTriangle)
Error triangle symbol/font.
Wippersnapper WS
Definition: Wippersnapper.cpp:36
void setRotation(uint8_t rotationMode)
Sets the display's rotation mode.
Definition: ws_display_driver.cpp:69
void enableLogging()
Enables LVGL logging using the usb serial. Must be called AFTER calling Serial.begin().
Definition: ws_display_driver.cpp:60