Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Servomotor pos-=10 #1753

Open
Bartje007 opened this issue Jul 19, 2024 · 0 comments
Open

Servomotor pos-=10 #1753

Bartje007 opened this issue Jul 19, 2024 · 0 comments

Comments

@Bartje007
Copy link

#include <Servo.h>
Servo myservo;
int pos=0;

void setup()
{
myservo.attach(10);
}
void loop(){
for(pos=0;pos<180; pos++)
{
myservo.write(pos);
delay(5);
}

for(pos=99; pos>1;pos-=10)
{myservo.write(pos);
delay(100);
}
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant