first approach with sensor controlled led sequence
This commit is contained in:
1 parent
2b2a135bd5
commit
b7ba521c59
3 files changed
+56
-10
No files matched your search
+4
-3
@@ -104,16 +104,17 @@ void setup() {
|
||||
os_timer_setfn(&timer1, timerCallback, &timer_flag);
|
||||
os_timer_arm(&timer1, 20, true);
|
||||
|
||||
stairs.setState(1);
|
||||
stairs.setDirection(1);
|
||||
//stairs.setState(1);
|
||||
//stairs.setDirection(1);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
if(millis() > 25000 && stairs.getState() == 1 && stairs.getDirection() == 1) stairs.setState(0);
|
||||
/*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(httpServer.handleClient(), 1000, "HTTP");
|
||||
}
|
||||
Reference in new issue
Block a user