diff --git a/docs/get-started/platforms/arduino.md b/docs/get-started/platforms/arduino.md index e9ca2e4d8d..2571caca40 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 3e44d6be05..548b97bd06 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;