Adding new image resources
- Find .png/.jpg/.svg image.
- Convert it to a .c file using LVGL Image Converter use Color Format
RGB565
or if image have transparent background useRGB565A8
. - Place the
.c
file in an approperiate folder, for exampleapp/src/images/icons/
- Convert the image to binary also running python script
python app/scripts/lvgl_c_array_to_bin_lvgl9.py <path_to_.c_file_in_step_3> app/src/images/binaries/S/
info
app/src/images/binaries/S/
is the folder where the binary files are stored to automatically be added when generating the blob of image resources.
To get the images to the watch see Getting image resources into the watch.