Closed Atorcha closed 1 year ago
Your callback is wonky. The definition of the callback is that it has two arguments:
B_DOWN
and B_UP
events.So you need to read the member variables in the Control
instance to get what you want. Or in other words:
Serial.print(sender->value);
I would like to input TIME for activate a TIMER, but I dont know how treat the variable. in void setup:
in main
void time1_Callback(Control *sender, int text_time) { Serial.print(" "); Serial.println(sender->id); Serial.print(text_time);
//This callback is needed to handle the changed values, even though it doesn't do anything itself. }