Rajesh Panicker
25 May 2024
26 May 2024
C++
Blocks
#include <Servo.h> Servo myservo;
int pos = 0;
// variable to store the servo position void setup()
{
myservo.attach(7);
} void loop()
for(pos = 0; pos <= 180; pos++) {
myservo.write(pos);
delay(50);
}
for(pos = 180; pos >= 0; pos--)
Image Added