From 428a8d48817646588e09258f258926e50dfdee58 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 16 Jul 2020 14:45:48 -0400 Subject: servo: Remove servo ENABLE parameter Allow one to disable servos via `SET_SERVO WIDTH=0` instead of using an explicit ENABLE parameter. Signed-off-by: Kevin O'Connor --- docs/Config_Changes.md | 4 ++++ docs/G-Codes.md | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/Config_Changes.md b/docs/Config_Changes.md index 70496ece..6f7e5217 100644 --- a/docs/Config_Changes.md +++ b/docs/Config_Changes.md @@ -6,6 +6,10 @@ All dates in this document are approximate. # Changes +20200725: The servo `enable` config parameter and the SET_SERVO +`ENABLE` parameter have been removed. Update any macros to use +`SET_SERVO SERVO=my_servo WIDTH=0` to disable a servo. + 20200608: The LCD display support has changed the name of some internal "glyphs". If a custom display layout was implemented it may be necessary to update to the latest glyph names (see diff --git a/docs/G-Codes.md b/docs/G-Codes.md index 3c91ee63..0ec0460e 100644 --- a/docs/G-Codes.md +++ b/docs/G-Codes.md @@ -258,8 +258,9 @@ sections are enabled: The following commands are available when a "servo" config section is enabled: -- `SET_SERVO SERVO=config_name [WIDTH=] [ENABLE=<0|1>]` -- `SET_SERVO SERVO=config_name [ANGLE=] [ENABLE=<0|1>]` +- `SET_SERVO SERVO=config_name [ANGLE= | WIDTH=]`: + Set the servo position to the given angle (in degrees) or pulse + width (in seconds). Use `WIDTH=0` to disable the servo output. ## Manual stepper Commands -- cgit v1.2.3-70-g09d2