Example Arduino project using EEZ-Studio and LVGL.
Configured for Raspberry Pi Pico using the arduino-pico core and an ILI9488 320x480 SPI touchscreen.
Brief instructions:
- install LVGL library version 8.3.11 (not version 9)
- install TFT_eSPI library version 2.5.43
- copy the provided lvlg.h to the Arduino libraries folder (above, not in, the lvgl library folder)
- copy the provided User_Setup_Select.h to the TFT_eSPI library folder
- copy the provided Setup321_Pico_ILI9488_CV_Programmer.h to the User_Setups folder in the TFT_eSPI library folder
- edit this file if your hardware or pin usage differs from mine
- copy the Arduino project to your Arduino sketchbook folder
- compile and upload
The first time you run the program, it will be necessary to calibrate the touchscreen. This runs automatically.
If you wish to modify the UI, install EEZ-Studio from https://www.envox.eu/studio/studio-introduction/.
Note that the UI design is configured for a 320x480 pixel display. You will need to modify the layout if your hardware differs from this.
The summary workflow for amending the UI:
- make the desired changes in EEZ-Studio and save your changes
- click the build (spanner) icon
- copy the generated .c and .h files to the Arduino sketch folder
- edit these files and change any #include of <lvgl/lvgl.h> to just <lvgl.h>
- any new UI 'actions' (event handlers) will require a matching implementaton of the callback functions defined in actions.h
- recompile and upload