From 7494e0bb2251b32bd52af7199efe554c06267929 Mon Sep 17 00:00:00 2001 From: HomeSpan Date: Sun, 30 Jun 2024 20:48:30 -0500 Subject: [PATCH] Update PWM.md --- docs/PWM.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/PWM.md b/docs/PWM.md index ea6c7c2..27e21c7 100644 --- a/docs/PWM.md +++ b/docs/PWM.md @@ -71,7 +71,8 @@ The *minMicros* parameter must be less than the *maxMicros* parameter, but setti * `void set(double position)` - * sets the position of the Servo Motor to *position* (in degrees). In order to protect the Servo Motor, values of *position* less than *minDegrees* are automatically reset to *minDegrees*, and values greater than *maxDegrees* are automatically reset to *maxDegrees*. + * sets the position of the Servo Motor to *position* (in degrees). In order to protect the Servo Motor, values of *position* less than *minDegrees* are automatically reset to *minDegrees*, and values greater than *maxDegrees* are automatically reset to *maxDegrees* + * if *position* is specified as *NAN* (i.e. the C++ "not-a-number" constant), the duty-cycle is set to zero, which effectively stops the pulse generation --- for most analog servos this means the motor can be freely rotated. Calling `set()` once again with *position* equal to an actual number of degrees restarts the pulse train and sets the servo position accordingly * `int getPin()`