Update lock rotation to 900

This commit is contained in:
Jeroen Stroeve 2024-09-18 20:37:51 +02:00
parent a0028efc8e
commit 16a44acc40

View file

@ -89,13 +89,13 @@ void setup() {
state = STATE_OPEN;
Serial.println("RECEIVED OPEN");
stepper.enable();
stepper.startRotate(-560);
stepper.startRotate(-900);
}
if (digitalRead(DOOR_CLOSE) == HIGH && state == STATE_IDLE){
state = STATE_CLOSE;
Serial.println("RECEIVED CLOSE");
stepper.enable();
stepper.startRotate(560);
stepper.startRotate(900);
}
}