diff options
| author | JF <jf@codingfield.com> | 2020-02-10 20:05:33 (GMT) |
|---|---|---|
| committer | JF <jf@codingfield.com> | 2020-02-10 20:05:33 (GMT) |
| commit | e65c9fa18138e8623d5f8e5e8f25fcf0e3d3cf67 (patch) | |
| tree | 39fe9ee738ae5af8c59c83d329ad6072a93b9cfd /src/DisplayApp/LittleVgl.h | |
| parent | a97faf8e9e84053d6db37549cc4211866cb3b89f (diff) | |
Integration of lvgl : continued...
Diffstat (limited to 'src/DisplayApp/LittleVgl.h')
| -rw-r--r-- | src/DisplayApp/LittleVgl.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/DisplayApp/LittleVgl.h b/src/DisplayApp/LittleVgl.h new file mode 100644 index 0000000..cff1c3b --- /dev/null +++ b/src/DisplayApp/LittleVgl.h @@ -0,0 +1,29 @@ +#pragma once + +#include <libs/lvgl/src/lv_hal/lv_hal.h> +#include <drivers/St7789.h> + + +static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p); + +namespace Pinetime { + namespace Components { + class LittleVgl { + public: + LittleVgl(Pinetime::Drivers::St7789& lcd); + void FlushDisplay(const lv_area_t * area, lv_color_t * color_p); + + + private: + Pinetime::Drivers::St7789& lcd; + + lv_disp_buf_t disp_buf_2; + lv_color_t buf2_1[LV_HOR_RES_MAX * 2]; + lv_color_t buf2_2[LV_HOR_RES_MAX * 2]; + + lv_disp_drv_t disp_drv; + + }; + } +} + |
