Skip to content

Commit

Permalink
Servo Without Servo library
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSniper1421 authored Dec 19, 2023
1 parent 0d0e1d9 commit 888daa2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Servo
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
for(int i=0;i<50;i++)
{
digitalWrite(servo,HIGH);
delayMicroseconds(500);
digitalWrite(servo,LOW);
delay(20);
}
for(int i=0;i<50;i++)
{
digitalWrite(servo,HIGH);
delayMicroseconds(2500);
digitalWrite(servo,LOW);
delay(20);
}

0 comments on commit 888daa2

Please sign in to comment.