Merge branch 'capper' of git.sixteenmillimeter.com:16mm/mcopy into capper

This commit is contained in:
Matt McWilliams 2022-06-11 16:06:25 -04:00
commit f9d716552b
1 changed files with 5 additions and 0 deletions

View File

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