From 75cb115330f6f87d90813fc67ff0f7feb3b4007d Mon Sep 17 00:00:00 2001 From: KenwoodFox Date: Mon, 28 Jun 2021 01:29:59 -0400 Subject: [PATCH] Modify code +- limits for pwm sweep --- .../arduino/crawler_slave/crawler_slave/crawler_slave.ino | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); +}