arduino-course/Week 3/Servo/Servo.ino

15 lines
163 B
C++

#include <Servo.h>
Servo myservo;
void setup() {
myservo.attach(6);
}
void loop() {
myservo.write(0);
delay(1000);
myservo.write(180);
delay(1000);
}