change callbacks to vector
This commit is contained in:
parent
71475ef2f1
commit
011710fe82
19 changed files with 207 additions and 109 deletions
|
@ -50,10 +50,7 @@ void setup() {
|
|||
espmega.iot.registerCard(0);
|
||||
espmega.iot.registerCard(1);
|
||||
Serial.println("Initialization Routine Complete");
|
||||
((DigitalInputIoT*)espmega.iot.getComponent(0)) -> registerChangeCallback(input_change_callback);
|
||||
|
||||
|
||||
|
||||
espmega.inputs.registerCallback(input_change_callback);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue