15 lines
163 B
Arduino
15 lines
163 B
Arduino
|
#include <Servo.h>
|
||
|
|
||
|
Servo myservo;
|
||
|
|
||
|
void setup() {
|
||
|
myservo.attach(6);
|
||
|
}
|
||
|
|
||
|
void loop() {
|
||
|
myservo.write(0);
|
||
|
delay(1000);
|
||
|
myservo.write(180);
|
||
|
delay(1000);
|
||
|
}
|