Call function with inputs

I would like to have inputs to the “Call Function”.

Then I could write this function in the Arduino sketch.

void NotifyCall(lv_event_t * e, int Button)

{

Serial.print(Button);

Serial.println(" = This button was clicked");

}

If I set all buttons with the same call function, then a declaration appears in ui_events.h for all buttons. That would have to be fixed then.

// This file was generated by SquareLine Studio

// SquareLine Studio version: SquareLine Studio 1.3.0

// LVGL version: 8.3.6

// Project name: EKIsSmartWatch

#ifndef _UI_EVENTS_H

#define _UI_EVENTS_H

#ifdef __cplusplus

extern "C" {

#endif

void NotifyCall(lv_event_t * e);

void NotifyCall(lv_event_t * e);

void NotifyCall(lv_event_t * e);

void NotifyCall(lv_event_t * e);

#ifdef __cplusplus

} /*extern "C"*/

#endif

#endif

It’s really ugly, but does it cause a compiler error? If so could you copy it?

cc @Marton