This shows you the differences between two versions of the page.
Next revision Both sides next revision | |||
servo-interactive-test [2012/10/06 14:16] 85.218.109.130 created |
servo-interactive-test [2012/10/06 14:16] 85.218.109.130 |
||
---|---|---|---|
Line 36: | Line 36: | ||
} | } | ||
} | } | ||
- | //else { | + | |
- | // for (val=0; val<179; val++) { | + | |
- | // myservo.write(val); // sets the servo position according to the scaled value | + | |
- | // delay(5); // waits for the servo to get there | + | |
- | // } | + | |
- | // for (val=179; val>0; val--) { | + | |
- | // myservo.write(val); | + | |
- | // delay(5); | + | |
- | // } | + | |
- | // } | + | |
} | } | ||
</code> | </code> |