mirror of
https://github.com/bitlair/bitlair_doorduino.git
synced 2025-05-13 12:20:07 +02:00
Update lock rotation to 900
This commit is contained in:
parent
a0028efc8e
commit
16a44acc40
1 changed files with 2 additions and 2 deletions
|
@ -89,13 +89,13 @@ void setup() {
|
||||||
state = STATE_OPEN;
|
state = STATE_OPEN;
|
||||||
Serial.println("RECEIVED OPEN");
|
Serial.println("RECEIVED OPEN");
|
||||||
stepper.enable();
|
stepper.enable();
|
||||||
stepper.startRotate(-560);
|
stepper.startRotate(-900);
|
||||||
}
|
}
|
||||||
if (digitalRead(DOOR_CLOSE) == HIGH && state == STATE_IDLE){
|
if (digitalRead(DOOR_CLOSE) == HIGH && state == STATE_IDLE){
|
||||||
state = STATE_CLOSE;
|
state = STATE_CLOSE;
|
||||||
Serial.println("RECEIVED CLOSE");
|
Serial.println("RECEIVED CLOSE");
|
||||||
stepper.enable();
|
stepper.enable();
|
||||||
stepper.startRotate(560);
|
stepper.startRotate(900);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue