From 7da0050ce071c555713b2a55d598088f87e710a9 Mon Sep 17 00:00:00 2001 From: David Madison Date: Thu, 25 Jan 2024 10:55:35 -0500 Subject: [PATCH] Add servo 'available' check to BasicAngle example --- examples/BasicAngle/BasicAngle.ino | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/BasicAngle/BasicAngle.ino b/examples/BasicAngle/BasicAngle.ino index e8c92eb..2eba445 100644 --- a/examples/BasicAngle/BasicAngle.ino +++ b/examples/BasicAngle/BasicAngle.ino @@ -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() {