How to use function_calls to display data with Arduino

Hello all,

Very basic question I’m sure but how do I use the “call function” action and where in my own code do I place this?

I’m currently working on a ESP32 project using Arduino IDE.

As an example, I’ve created a label called “myMultiplyFunction” and the result of this I would like to display as an integer on the screen.

On the ui_events.c file I see the action and a prompt:

#include "ui.h"

void myMultiplyFunction(lv_event_t * e)
  // Your code here

As a test to understand the process, is this where I would include some sort of Serial.print statement or other function code to display.

Just looking for some guidance/resources on how to print/show/update data to the screen.

Thank you for any help.

In case of Arduino I think the simplest would be to disable generating ui_events.c and add teh functions manually to the INO file.

Set “Call function export path” to “don’t export” in Project settings:

Thank you. Do I also check this box?

Screen Shot 2023-01-10 at 10.17.20 AM

In the event itself you can control one-by-one whether to export or not a function. But in the project settings you can disable it globally too. Once you have disabled it, the checkbox in the event doesn’t have much effect. (Actually we should hide it in the case)