Skip to content

Commit

Permalink
Add servo 'available' check to BasicAngle example
Browse files Browse the repository at this point in the history
  • Loading branch information
dmadison committed Jan 25, 2024
1 parent 7577f09 commit 7da0050
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/BasicAngle/BasicAngle.ino
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ ServoInputPin<2> servo;

void setup() {
Serial.begin(115200);

while (servo.available() == false) {
Serial.println("Waiting for servo signal...");
delay(500);
}
}

void loop() {
Expand Down

0 comments on commit 7da0050

Please sign in to comment.