Open KLelong opened 1 week ago
Maybe this helps : the serial-output at startup.
Arduino_GFX LVGL_Arduino example v9
Hello Arduino! V9.1.1
Init Display
TFT_BL
[Info] (0.000, +0) lv_init: begin lv_init.c:146
[Info] (0.220, +220) lv_obj_create: begin lv_obj.c:106
[Info] (0.220, +220) lv_obj_create: begin lv_obj.c:106
[Info] (0.233, +13) lv_obj_create: begin lv_obj.c:106
[Info] (0.233, +13) lv_obj_create: begin lv_obj.c:106
[Info] (0.244, +11) lv_obj_create: begin lv_obj.c:106
[Info] (0.244, +11) lv_obj_create: begin lv_obj.c:106
[Info] (0.254, +10) lv_obj_create: begin lv_obj.c:106
[Info] (0.254, +10) lv_obj_create: begin lv_obj.c:106
[Info] (0.264, +10) lv_sysmon_create: begin lv_sysmon.c:81
[Info] (0.264, +10) lv_sysmon_create: begin lv_sysmon.c:81
[Info] (0.275, +11) lv_label_create: begin lv_label.c:84
[Info] (0.275, +11) lv_label_create: begin lv_label.c:84
[Info] (0.288, +13) lv_obj_create: begin lv_obj.c:106
[Info] (0.288, +13) lv_obj_create: begin lv_obj.c:106
[Info] (0.299, +11) lv_label_create: begin lv_label.c:84
[Info] (0.299, +11) lv_label_create: begin lv_label.c:84
[Info] (0.310, +11) lv_button_create: begin lv_button.c:50
[Info] (0.310, +11) lv_button_create: begin lv_button.c:50
[Info] (0.322, +12) lv_obj_create: begin lv_obj.c:106
[Info] (0.322, +12) lv_obj_create: begin lv_obj.c:106
[Info] (0.332, +10) lv_button_create: begin lv_button.c:50
[Info] (0.332, +10) lv_button_create: begin lv_button.c:50
[Info] (0.344, +12) lv_label_create: begin lv_label.c:84
[Info] (0.344, +12) lv_label_create: begin lv_label.c:84
Setup done
It seems some labels and buttons are created, but I don't see them, only the colored screens.
If you're still getting the cycle of solid colored screens, this code is not running on the device. This project is two white screens with simple buttons on them to simply toggle between them and demonstrate a fully functional bare bones implementation of LVGL on this hardware. I'll add some photos to the main page to give a better idea for what the expected interface should look like. Let me know if you have any other issues!
OK, I manually erased the flash and uploaded again. Now I get a solid white screen, but nothing else. The serial monitor gives the output of the touchscreen.
I still wonder why I had to include that build-flag to get the code linked. Maybe that build-flag is the reason I don't see anything on the screen ?
That cycle of full-screen colors was a remnant of the demo on the board I think, but why did that run when I flashed new code on the board ? Together with the new code !
Hi, Is there anything you forgot to mention with your setup ? I copied your repo and downloaded the libraries. Visual Studio Code compiles it fine, but the linking fails. This is the error I get :
Adding a build-flag in platformio.ini:
'-D EEZ_FOR_LVGL_SHA256_OPTION=0'
fixed the linking. I then uploaded the code to my device, but what is it supposed to do ? All I get is a cycle of white, red, green, blue and black screens. When I touch the screen, I get data via the serial-console, so that is good. TIA