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 <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2020-07-16 14:45:48 -04:00
parent 122fd88c6a
commit 428a8d4881
4 changed files with 13 additions and 21 deletions

View File

@@ -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

View File

@@ -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=<seconds>] [ENABLE=<0|1>]`
- `SET_SERVO SERVO=config_name [ANGLE=<degrees>] [ENABLE=<0|1>]`
- `SET_SERVO SERVO=config_name [ANGLE=<degrees> | WIDTH=<seconds>]`:
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