november 13, 2024 by admin #include <Servo.h> Servo servo; void setup() {servo.attach(9); }void loop() {for(int i=0;i<180; i++){ servo.write(i); delay(15); } for(int i=180; i>0; i–){servo.write(i);delay(7);} }