diff --git a/crawler_software/arduino/crawler_slave/crawler_slave/crawler_slave.ino b/crawler_software/arduino/crawler_slave/crawler_slave/crawler_slave.ino index dd53007..b38d788 100644 --- a/crawler_software/arduino/crawler_slave/crawler_slave/crawler_slave.ino +++ b/crawler_software/arduino/crawler_slave/crawler_slave/crawler_slave.ino @@ -16,9 +16,7 @@ int pos = 0; // variable to store the servo position void setup() { myservo.attach(9); // attaches the servo on pin 9 to the servo object -} -void loop() { for (pos = 70; pos <= 130; pos += 1) { // goes from 0 degrees to 180 degrees // in steps of 1 degree myservo.write(pos); // tell servo to go to position in variable 'pos' @@ -29,3 +27,7 @@ void loop() { delay(15); // waits 15ms for the servo to reach the position } } + +void loop() { + delay(1000); +}