#include<Servo.h>Servo s1;void setup(){ s1.attach(9); s1.write(0);}void loop(){ for(int i=0;i<=180;i=i+10) { s1.write(i); delay(500); }}
No comments