top of page
We're taking extra measures to ensure our final project will be finished as well. Learn More
Code:
​
#include <Servo.h>
#define PIN_SERVO 10
Servo myservo;
void setup()
{
myservo.attach(PIN_SERVO);
}
void loop()
{
myservo.write(0);
delay(1000);
myservo.write(40);
delay(1000);
myservo.write(80);
delay(1000);
myservo.write(180);
delay(1000);
myservo.write(360);
delay(1000);
}
Output
bottom of page