1 #ifndef _ADAFRUIT_LVGL_GLUE_H_ 2 #define _ADAFRUIT_LVGL_GLUE_H_ 4 #include <Adafruit_SPITFT.h> 5 #include <Adafruit_STMPE610.h> 6 #include <TouchScreen.h> 8 #if defined(ARDUINO_ARCH_SAMD) 9 #include <Adafruit_ZeroTimer.h> 30 LvGLStatus
begin(Adafruit_SPITFT *tft, Adafruit_STMPE610 *touch,
32 LvGLStatus
begin(Adafruit_SPITFT *tft, TouchScreen *touch,
34 LvGLStatus
begin(Adafruit_SPITFT *tft,
bool debug =
false);
44 LvGLStatus
begin(Adafruit_SPITFT *tft,
void *touch,
bool debug);
45 static lv_disp_drv_t lv_disp_drv;
46 static lv_disp_draw_buf_t lv_disp_draw_buf;
47 static lv_color_t *lv_pixel_buf;
48 static lv_indev_drv_t lv_indev_drv;
49 lv_indev_t *lv_input_dev_ptr;
50 #if defined(ARDUINO_ARCH_SAMD) 51 Adafruit_ZeroTimer *zerotimer;
54 #elif defined(NRF52_SERIES) 58 #endif // _ADAFRUIT_LVGL_GLUE_H_ bool first_frame
Definition: Adafruit_LvGL_Glue.h:40
void * touchscreen
Pointer to the touchscreen object to use.
Definition: Adafruit_LvGL_Glue.h:38
Class to act as a "glue" layer between the LvGL graphics library and most of Adafruit's TFT displays...
Definition: Adafruit_LvGL_Glue.h:25
Adafruit_SPITFT * display
Pointer to the SPITFT display instance.
Definition: Adafruit_LvGL_Glue.h:37
bool is_adc_touch
determines if the touchscreen controlelr is ADC based
Definition: Adafruit_LvGL_Glue.h:39
LvGLStatus begin(Adafruit_SPITFT *tft, Adafruit_STMPE610 *touch, bool debug=false)
Configure the glue layer and the underlying LvGL code to use the given TFT display driver instance an...
Definition: Adafruit_LvGL_Glue.cpp:267
Adafruit_LvGL_Glue(void)
Construct a new Adafruit_LvGL_Glue::Adafruit_LvGL_Glue object, initializing minimal variables...
Definition: Adafruit_LvGL_Glue.cpp:224
~Adafruit_LvGL_Glue(void)
Destroy the Adafruit_LvGL_Glue::Adafruit_LvGL_Glue object, freeing any memory previously allocated wi...
Definition: Adafruit_LvGL_Glue.cpp:236