Tasmota/lib/libesp32/RadioLib/examples/NonArduino/Tock/libtock-c/lvgl
2024-02-23 16:20:09 +01:00
..
lvgl Prep LoRa 2 2024-02-23 16:20:09 +01:00
lv_conf.h Prep LoRa 2 2024-02-23 16:20:09 +01:00
Makefile Prep LoRa 2 2024-02-23 16:20:09 +01:00
README.md Prep LoRa 2 2024-02-23 16:20:09 +01:00

lvGL 8.0.2 for Tock OS

Light and Versatile Graphics Library is a free and open-source graphics library providing everything you need to create embedded GUI with easy-to-use graphical elements, beautiful visual effects and low memory footprint.

See https://docs.littlevgl.com/en/html/index.html for documentation.

Using lvgl in Tock

To use lvgl, add the following include to the application's Makefile:

EXTERN_LIBS += $(TOCK_USERLAND_BASE_DIR)/lvgl

Re-compiling lvgl

Checkout the lvgl submodule in this directory

$ git submodule init -- lvgl
$ git submodule update

For faster build times, edit the lvgl/lvgl.mk file and comment the examples.

# include $(LVGL_DIR)/$(LVGL_DIR_NAME)/examples/examples.mk
include $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/extra.mk
include $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/core/lv_core.mk
...

then run make

$ cd lvgl
$ make

Configure lvGL

Edit the lv_conf.h in this folder to set up some parameters and optionals