Add Custom code and/or LVGL code

Hi is there a way to add custom code to the project?
Like custom LVGL code or C/C++ code.

And maybe custom export. I’m working with VSCode/platformIO(OS x) and SquareLine Studio to make DIY projects for my ESP32.

1 Like

Hi,

We are working on allowing some kind of “code injection”. However, at this moment you can add your code after calling ui_init().

I usually create a ui_ext.c/h file with a ui_ext_init() function and call it after ui_init(). In ui_ext_init() I do some stuff which wasn’t possible in SLS.

Hi i now, that’s nice. but if i make a new export i have to edit the export files again.

ui_ext.c will be your file, and SLS doesn’t your files.