establish hardwareLoop()

This commit is contained in:
Ronald Schaten 2016-12-23 00:03:36 +01:00
parent 23d3c314c2
commit c83dc44f83
7 changed files with 13 additions and 0 deletions

View File

@ -42,3 +42,5 @@ void hardwareSetup() {
analogWrite(PIN_RGB_BLUE, 0); analogWrite(PIN_RGB_BLUE, 0);
deviceLedW1.ledBrightnessHandler("{\"brightness\":100}"); deviceLedW1.ledBrightnessHandler("{\"brightness\":100}");
} }
void hardwareLoop() {};

View File

@ -26,3 +26,5 @@ void hardwareSetup() {
pinMode(PIN_RELAY, OUTPUT); pinMode(PIN_RELAY, OUTPUT);
digitalWrite(PIN_RELAY, HIGH); digitalWrite(PIN_RELAY, HIGH);
}; };
void hardwareLoop() {};

View File

@ -30,3 +30,5 @@ Device* devices[] = {
}; };
void hardwareSetup() {}; void hardwareSetup() {};
void hardwareLoop() {};

View File

@ -30,3 +30,5 @@ Device* devices[] = {
}; };
void hardwareSetup() {}; void hardwareSetup() {};
void hardwareLoop() {};

View File

@ -37,3 +37,5 @@ Device* devices[] = {
}; };
void hardwareSetup() {}; void hardwareSetup() {};
void hardwareLoop() {};

View File

@ -48,3 +48,5 @@ Device* devices[] = {
}; };
void hardwareSetup() {}; void hardwareSetup() {};
void hardwareLoop() {};

View File

@ -16,6 +16,7 @@ void setupHandler() {
} }
void loopHandler() { void loopHandler() {
hardwareLoop();
for (int i = 0; i < sizeof(devices) / sizeof(*devices); i++) { for (int i = 0; i < sizeof(devices) / sizeof(*devices); i++) {
devices[i]->deviceLoop(); devices[i]->deviceLoop();
} }