21 lines
247 B
Arduino
21 lines
247 B
Arduino
|
#include <Servo.h>
|
||
|
|
||
|
Servo myservoA;
|
||
|
|
||
|
void setup() {
|
||
|
myservoA.attach(9);
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
void loop() {
|
||
|
myservoA.write(30);
|
||
|
delay(2000);
|
||
|
myservoA.write(50);
|
||
|
delay(2000);
|
||
|
myservoA.write(65);
|
||
|
delay(2000);
|
||
|
myservoA.write(50);
|
||
|
delay(2000);
|
||
|
}
|