I need to assign a callback function with given parameters, so when the event gets triggered and the callback function is called, it calls the function with given parameters. I've looked at multiple websites and I've been trying to find a solution but no luck. Might be that I'm just so dumb, what can I do?
Here's a bit of what I'm trying to do -
void callbackFunction(int someParameter) {
// Do something here
}
master.ButtonL1.pressed(callbackFunction(3));
// The code above doesn't work, just there to show what I'm wanting to do