Creating a custom widget

Hello all,

is there any how-to on the creation of a custom widget in C? I only have found an example for MicroPython, which does not really help.

To start, I have copied the code from lv_led.[ch] into my project, renamed all to lv_led_rect and call it from my application code. Apart from this, I have not changed anything.
The code compiles and is linked properly. Both constructor and event handler are called. But: nothing happens on the screen.

Does the new widget require some kind of registration? I was not able to find anything in the documentation.



1 Like

For custom widget you can check project here

Folder /main/widgets