Minor document update (#3185)
* chore(docs): change "-DLV_USE_BTN 1" to "-DLV_USE_BTN=1" Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> * chore(docs): update demo related link and description Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -71,23 +71,13 @@ target_link_libraries(MyFirmware PRIVATE lvgl::lvgl lvgl::examples)
|
||||
```
|
||||
|
||||
## Building LVGL drivers and demos with CMake
|
||||
Exactly the same goes for the [drivers](https://github.com/lvgl/lv_drivers) and the [demos](https://github.com/lvgl/lv_demos).
|
||||
Exactly the same goes for the [drivers](https://github.com/lvgl/lv_drivers) and the [demos](https://github.com/lvgl/lvgl/demos).
|
||||
|
||||
```cmake
|
||||
# Specify path to own LVGL demos config header
|
||||
set(LV_DEMO_CONF_PATH
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/lv_demo_conf.h
|
||||
CACHE STRING "" FORCE)
|
||||
|
||||
FetchContent_Declare(lv_drivers
|
||||
GIT_REPOSITORY https://github.com/lvgl/lv_drivers)
|
||||
FetchContent_MakeAvailable(lv_drivers)
|
||||
FetchContent_Declare(lv_demos
|
||||
GIT_REPOSITORY https://github.com/lvgl/lv_demos.git)
|
||||
FetchContent_MakeAvailable(lv_demos)
|
||||
|
||||
# The target "MyFirmware" depends on LVGL, drivers and demos
|
||||
target_link_libraries(MyFirmware PRIVATE lvgl::lvgl lvgl::drivers lvgl::examples)
|
||||
```
|
||||
|
||||
Just like the [lv_conf.h](https://github.com/lvgl/lvgl/blob/master/lv_conf_template.h) header demos comes with its own config header called [lv_demo_conf.h](https://github.com/lvgl/lv_demos/blob/master/lv_demo_conf_template.h). Analogous to `LV_CONF_PATH` its path can be set by using the option `LV_DEMO_CONF_PATH`.
|
||||
|
||||
@@ -10,7 +10,7 @@ More information about ESP-IDF build system can be found [here](https://docs.esp
|
||||
|
||||
## LVGL demo project for ESP32
|
||||
|
||||
We've created [lv_port_esp32](https://github.com/lvgl/lv_port_esp32), a project using ESP-IDF and LVGL to show one of the demos from [lv_demos](https://github.com/lvgl/lv_demos).
|
||||
We've created [lv_port_esp32](https://github.com/lvgl/lv_port_esp32), a project using ESP-IDF and LVGL to show one of the demos from [demos](https://github.com/lvgl/lvgl/demos).
|
||||
You can configure the project to use one of the many supported display controllers and targets (chips).
|
||||
|
||||
See [lvgl_esp32_drivers](https://github.com/lvgl/lvgl_esp32_drivers) repository for a complete list
|
||||
|
||||
Reference in New Issue
Block a user