This is an [WT_32_SC01] (https://item.taobao.com/item.htm?spm=a2oq0.12575281.0.0.15d11debmmCZdd&ft=t&id=611104447515) from wireless-tag demo project showcasing LVGL v7 with support for several display controllers(ST7796S) and touch controllers(FT6336U).
Supported display controllers:
- ILI9341
- ILI9488
- ILI9486
- HX8357B/HX8357D
- ST7789
- ST7735S
- ST7796S
- SH1107
- SSD1306
- IL3820
Supported touchscreen controllers:
- XPT2046
- FT3236
- other FT6X36 or the FT6206 controllers should work as well (not tested)
- STMPE610
If your display controller is not supported consider contributing to this repo by adding support to it! Contribute controller support
http://esp-idf.readthedocs.io/en/latest/
Note:
This project tries to be compatible with the ESP-IDF v4.0.
Instructions here are given for the v4.x toolchain using idf.py, but it is easy to translate to make.
For example instead of running idf.py menuconfig, just run make menuconfig.
Try this first to make sure your hardware is supported, wired and configured properly.
-
Get this project:
git clone --recurse-submodules https://github.com/wireless-tag-cn/lv_port_esp32.git -
From its root run
idf.py menuconfig -
Select your display kit or board and other options - see config options
-
For monochrome displays we suggest enabling the
unscii 8font (Component config -> LVGL configuration -> FONT USAGE) and the MONO theme (Component config -> LVGL configuration -> THEME USAGE). -
Store your project configuration.
-
For monochrome displays edit the
lv_conf.hfile available on thecomponents/lvgldirectory to look like follows:
#define LV_THEME_DEFAULT_INIT lv_theme_mono_init
#define LV_THEME_DEFAULT_COLOR_PRIMARY LV_COLOR_BLACK
#define LV_THEME_DEFAULT_COLOR_SECONDARY LV_COLOR_WHITE
#define LV_THEME_DEFAULT_FLAG 0
#define LV_THEME_DEFAULT_FONT_SMALL &lv_font_unscii_8
#define LV_THEME_DEFAULT_FONT_NORMAL &lv_font_unscii_8
#define LV_THEME_DEFAULT_FONT_SUBTITLE &lv_font_unscii_8
#define LV_THEME_DEFAULT_FONT_TITLE &lv_font_unscii_8
-
idf.py build -
idf.py -p (YOUR PORT) flash
