This commit is contained in:
@@ -9,13 +9,13 @@
|
||||
|
||||
#include <Servo.h>
|
||||
|
||||
Servo myservo; // create servo object to control a servo
|
||||
// twelve servo objects can be created on most boards
|
||||
Servo myservo; // create Servo object to control a servo
|
||||
// twelve Servo objects can be created on most boards
|
||||
|
||||
int pos = 0; // variable to store the servo position
|
||||
|
||||
void setup() {
|
||||
myservo.attach(9); // attaches the servo on pin 9 to the servo object
|
||||
myservo.attach(9); // attaches the servo on pin 9 to the Servo object
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Sweep
|
||||
|
||||
Sweeps the shaft of a RC [servo motor](http://en.wikipedia.org/wiki/Servo_motor#RC_servos) back and forth across 180 degrees.
|
||||
Sweeps the shaft of an RC [servo motor](http://en.wikipedia.org/wiki/Servo_motor#RC_servos) back and forth across 180 degrees.
|
||||
|
||||
## Hardware Required
|
||||
|
||||
|
||||
Reference in New Issue
Block a user