Browse Source

main cleanup

tags/v0.4.0
Dominik Bartsch 3 years ago
parent
commit
38c81ae182
1 changed files with 0 additions and 9 deletions
  1. 0
    9
      src/main.cpp

+ 0
- 9
src/main.cpp View File



os_timer_setfn(&timer1, timerCallback, &timer_flag); os_timer_setfn(&timer1, timerCallback, &timer_flag);
os_timer_arm(&timer1, 20, true); os_timer_arm(&timer1, 20, true);

//stairs.setState(1);
//stairs.setDirection(1);
} }


void loop() { void loop() {
/*if(millis() > 25000 && stairs.getState() == 1 && stairs.getDirection() == 1) stairs.setState(0);
if(millis() > 45000 && stairs.getDirection() == 1){
stairs.setState(1);
stairs.setDirection(0);
}
*/
TIMEIF_US(ArduinoOTA.handle(), 1000, "OTA"); TIMEIF_US(ArduinoOTA.handle(), 1000, "OTA");
TIMEIF_US(httpServer.handleClient(), 1000, "HTTP"); TIMEIF_US(httpServer.handleClient(), 1000, "HTTP");
} }

Loading…
Cancel
Save