This project demonstrates how to integrate LittlevlGL into a Legato app. The necessary LittlevGL dependencies are referenced by this repository as git submodules.
- Clone this repository with the
--recursive
option so that the submodules are retrieved as well. cp littlevLegatoComponent/littlevgl/lvgl/lv_conf_templ.h littlevLegatoComponent/littlevgl/lv_conf.h
cp littlevLegatoComponent/littlevgl/lv_drivers/lv_drv_conf_templ.h littlevLegatoComponent/littlevgl/lv_drv_conf.h
- Make the following changes to
littlevLegatoComponent/littlevgl/lv_conf.h
:- At the top of the file, change the
#if 0
to#if 1
to enable the file - Update logical dimension of screen for waveshare eink 2.13 Inch:
#define LV_HOR_RES (122) #define LV_VER_RES (250)
- Update default font type to use monochrome font:
#define LV_FONT_DEFAULT &lv_font_monospace_8
- Enable font size 8 for monochrome display and disable unsupported font:
#define USE_LV_FONT_DEJAVU_10 0 #define USE_LV_FONT_DEJAVU_10_LATIN_SUP 0 #define USE_LV_FONT_DEJAVU_10_CYRILLIC 0 #define USE_LV_FONT_SYMBOL_10 0 #define USE_LV_FONT_DEJAVU_20 0 #define USE_LV_FONT_DEJAVU_20_LATIN_SUP 0 #define USE_LV_FONT_DEJAVU_20_CYRILLIC 0 #define USE_LV_FONT_SYMBOL_20 0 #define USE_LV_FONT_DEJAVU_30 0 #define USE_LV_FONT_DEJAVU_30_LATIN_SUP 0 #define USE_LV_FONT_DEJAVU_30_CYRILLIC 0 #define USE_LV_FONT_SYMBOL_30 0 #define USE_LV_FONT_DEJAVU_40 0 #define USE_LV_FONT_DEJAVU_40_LATIN_SUP 0 #define USE_LV_FONT_DEJAVU_40_CYRILLIC 0 #define USE_LV_FONT_SYMBOL_40 0 #define USE_LV_FONT_MONOSPACE_8 1
- Update Color Depth to be 1:
#define LV_COLOR_DEPTH 1 /*Color depth: 1/8/16/32*/
- At the top of the file, change the
- Make the following changes to
littlevLegatoComponent/littlevgl/lv_drv_conf.h
:- At the top of the file, change the
#if 0
to#if 1
to enable the file - Update USE_FBDEV to 1 for using framebuffer device
#define USE_FBDEV 1
- At the top of the file, change the