Skip to content

How to create icons

Smanar edited this page Apr 26, 2024 · 1 revision

I m using for that monochrome image on PNG format, 1 bit color, 35*35 pixel size with the white as transparent color. Then on the online converter tool https://lvgl.io/tools/imageconverter I m using thoses settings

lvgl_cons

Then put the file in the folder src/images and the code will be added automatically. Just need to use LV_IMG_DECLARE(image_name) in code to be able to use it.

For information image file take less than 500 bytes (on PNG format) and *.c file less than 3 Kb.

Clone this wiki locally