This particular example of HMI-5.ino gives the error "C:\Users\IGOR_NMK\Documents\New_Dis\Hardware-Version-1.0\HMI-5\HMI-5.ino:3:10: fatal error: demos/lv_demos.h : No such file or directory
3 | #include <demos/lv_demos.h>
| ^~~~~~
compilation terminated.
exit status 1
Compilation error: demos/lv_demos.h: No such file or directory"
I installed all the specified libraries and configured the LVGL library in accordance with https://docs.lvgl.io/master/integration/framework/arduino.html
The example for the Elecrow 5-inch display from lesson 5 (CrowPanel_ESP32_LVGL_Demo) when loaded gives an error:
" C:\Users\IGOR_NMK\Documents\New_Dis\Lessons\CrowPanel_ESP32_Tutorial\Code\V1.X\Lesson 5 LVGL Demo Test\4.3-5-7inch\CrowPanel_ESP32_LVGL_Demo\CrowPanel_ESP32_LVGL_Demo.ino:130:3: error: 'lv_demo_widgets 'was not declared in this scope
130 | lv_demo_widgets(); // LVGL demo
| ^~~~~~~
exit status 1
Compilation error: 'lv_disp_draw_buf_t' does not name a type; did you mean 'lv_draw_buf_t'?
I kindly ask you to help me find and fix the error.
thank you in advance
Hi. you are using the last version of LVGL 9.x which have major changes with version 8.3. which is the version used in examples. You can make it works with v9.x but need to make some changes in buffers and types.
If you want to try the examples install the version 8.3 of lvgl.
And remember to activate the demo widgets in the lvgl config file.
I spent quite a while on the above - there are so many small bugs in the above it's shocking. This version works for me (please do let me know if it doesn't for you and I'll see if I can improve it). lv_conf.h file is in the include directory rather than the one Elecrow recommend since in their case if you press the 'Full Clean' button it deletes the file... https://github.com/MikeWarriner/CrowPanel7inch
Hello. After activation and correction of the error "c:\Users\IGOR_NMK\Documents\Arduino\libraries\libraries\lvgl\src\demos\benchmark\assets\img_benchmark_cogwheel_rgb565a8.c:4:10: fatal error: lvgl/lvgl.h: No such file or directory
"HMI-5 example gives an error when compiled (attached file)
Comments
Hello @Igor ,
Please follow this tutorial: https://www.elecrow.com/wiki/ESP32_Display_5.0-inch_HMI_Arduino_Tutorial.html
What's more, here's a serial of the video lesson: https://www.youtube.com/playlist?list=PLwh4PlcPx2Ge-h-Pfsa7juFeWMgXmv8lc They will help you get to know the CrowPanel from the simple to the advanced.
This particular example of HMI-5.ino gives the error "C:\Users\IGOR_NMK\Documents\New_Dis\Hardware-Version-1.0\HMI-5\HMI-5.ino:3:10: fatal error: demos/lv_demos.h : No such file or directory
3 | #include <demos/lv_demos.h>
| ^~~~~~
compilation terminated.
exit status 1
Compilation error: demos/lv_demos.h: No such file or directory"
Please place the libraries we provided to the path: C:\Users\IGOR_NMK\Documents\Arduino\libraries
I installed all the specified libraries and configured the LVGL library in accordance with
https://docs.lvgl.io/master/integration/framework/arduino.html
The example for the Elecrow 5-inch display from lesson 5 (CrowPanel_ESP32_LVGL_Demo) when loaded gives an error:
" C:\Users\IGOR_NMK\Documents\New_Dis\Lessons\CrowPanel_ESP32_Tutorial\Code\V1.X\Lesson 5 LVGL Demo Test\4.3-5-7inch\CrowPanel_ESP32_LVGL_Demo\CrowPanel_ESP32_LVGL_Demo.ino:130:3: error: 'lv_demo_widgets 'was not declared in this scope
130 | lv_demo_widgets(); // LVGL demo
| ^~~~~~~
exit status 1
Compilation error: 'lv_disp_draw_buf_t' does not name a type; did you mean 'lv_draw_buf_t'?
I kindly ask you to help me find and fix the error.
thank you in advance
Hi. you are using the last version of LVGL 9.x which have major changes with version 8.3. which is the version used in examples. You can make it works with v9.x but need to make some changes in buffers and types.
If you want to try the examples install the version 8.3 of lvgl.
And remember to activate the demo widgets in the lvgl config file.
Hello. Is this the correct activation?
define LV_USE_DEMO_WIDGETS 1
if LV_USE_DEMO_WIDGETS
define LV_DEMO_WIDGETS_SLIDESHOW 0
endif
I spent quite a while on the above - there are so many small bugs in the above it's shocking. This version works for me (please do let me know if it doesn't for you and I'll see if I can improve it). lv_conf.h file is in the include directory rather than the one Elecrow recommend since in their case if you press the 'Full Clean' button it deletes the file...
https://github.com/MikeWarriner/CrowPanel7inch
Hello. After activation and correction of the error "c:\Users\IGOR_NMK\Documents\Arduino\libraries\libraries\lvgl\src\demos\benchmark\assets\img_benchmark_cogwheel_rgb565a8.c:4:10: fatal error: lvgl/lvgl.h: No such file or directory
"HMI-5 example gives an error when compiled (attached file)
Do I have to press the BOOT button on the display to load the sketch?
Examples from lessons 5, 7 and 8 (V1.X) are loading, but there is nothing on the screen