Silly typo: did not invoke Servo_init() and so servo was not initalizing

This commit is contained in:
Matthew McWilliams 2022-06-10 13:19:38 -04:00
parent 9d3bf24627
commit f7a3c52260
1 changed files with 5 additions and 0 deletions

View File

@ -56,6 +56,7 @@ void setup() {
Serial.setTimeout(serialDelay);
Pins_init();
Servo_init();
}
void loop() {
@ -108,6 +109,10 @@ void Pins_init () {
void Servo_init () {
servo.attach(PIN_SERVO);
delay(100);
servo.write(180);
delay(500);
servo.write(0);
delay(500);
if (!Read_endstop()) {
Cap_off(true);
}