From e26a46c43c23e91198318659c8214cc34be5cee2 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Tue, 14 Mar 2023 07:38:03 +0100 Subject: [PATCH] docs(arduino): add note to not use lv_examles library fixes #4054 --- docs/get-started/platforms/arduino.md | 7 ++++++- examples/arduino/LVGL_Arduino/LVGL_Arduino.ino | 8 ++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/docs/get-started/platforms/arduino.md b/docs/get-started/platforms/arduino.md index e9ca2e4d8..2571caca4 100644 --- a/docs/get-started/platforms/arduino.md +++ b/docs/get-started/platforms/arduino.md @@ -52,9 +52,14 @@ In the INO file you can see how to register a display and a touchpad for LVGL an Note that, there is no dedicated INO file for every example. Instead, you can load an example by calling an `lv_example_...` function. For example `lv_example_btn_1()`. -**IMPORTANT** +**IMPORTANT NOTE 1** Due to some the limitations of Arduino's build system you need to copy `lvgl/examples` to `lvgl/src/examples`. Similarly for the demos `lvgl/demos` to `lvgl/src/demos`. + +**IMPORTANT NOTE 2** +Note that the `lv_examples` library is for LVGL v7 and you shouldn't install it for this version (since LVGL v8) +as the examples and demos are now part of the main LVGL library. + ## Debugging and logging LVGL can display debug information in case of trouble. diff --git a/examples/arduino/LVGL_Arduino/LVGL_Arduino.ino b/examples/arduino/LVGL_Arduino/LVGL_Arduino.ino index 3e44d6be0..548b97bd0 100644 --- a/examples/arduino/LVGL_Arduino/LVGL_Arduino.ino +++ b/examples/arduino/LVGL_Arduino/LVGL_Arduino.ino @@ -1,13 +1,13 @@ /*Using LVGL with Arduino requires some extra steps: - * Be sure to read the docs here: https://docs.lvgl.io/master/get-started/platforms/arduino.html */ + *Be sure to read the docs here: https://docs.lvgl.io/master/get-started/platforms/arduino.html */ #include #include /*To use the built-in examples and demos of LVGL uncomment the includes below respectively. - *You also need to copy `lvgl/examples` to `lvgl/src/examples`. Similarly for the demos `lvgl/demos` to `lvgl/src/demos`.*/ -//#include -//#include + *You also need to copy `lvgl/examples` to `lvgl/src/examples`. Similarly for the demos `lvgl/demos` to `lvgl/src/demos`. + Note that the `lv_examples` library is for LVGL v7 and you shouldn't install it for this version (since LVGL v8) + as the examples and demos are now part of the main LVGL library. */ /*Change to your screen resolution*/ static const uint16_t screenWidth = 480;