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

15 lines
163 B
Arduino
Raw Permalink Normal View History

2019-11-22 18:03:16 +01:00
#include <Servo.h>
Servo myservo;
void setup() {
myservo.attach(6);
}
void loop() {
myservo.write(0);
delay(1000);
myservo.write(180);
delay(1000);
}