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