From c148f17ea3391e3720961270a12eb0645f688e12 Mon Sep 17 00:00:00 2001 From: Paul McGowan Date: Wed, 2 Jun 2021 10:51:45 -0400 Subject: neopixel: add sync parameter to prevent waking toolhead (#4339) neopixel: add sync param to prevent waking toolhead dotstar: refactor to match neopixel methods and add sync parameter Signed-off-by: Paul McGowan --- docs/G-Codes.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/G-Codes.md b/docs/G-Codes.md index 273870d5..38e7e389 100644 --- a/docs/G-Codes.md +++ b/docs/G-Codes.md @@ -272,7 +272,7 @@ The following command is available when a [neopixel config section](Config_Reference.md#neopixel) or [dotstar config section](Config_Reference.md#dotstar) is enabled: - `SET_LED LED= RED= GREEN= BLUE= - WHITE= [INDEX=] [TRANSMIT=0]`: This sets the LED + WHITE= [INDEX=] [TRANSMIT=0] [SYNC=1]`: This sets the LED output. Each color `` must be between 0.0 and 1.0. The WHITE option is only valid on RGBW LEDs. If multiple LED chips are daisy-chained then one may specify INDEX to alter the color of just @@ -281,7 +281,12 @@ The following command is available when a to the provided color. If TRANSMIT=0 is specified then the color change will only be made on the next SET_LED command that does not specify TRANSMIT=0; this may be useful in combination with the INDEX - parameter to batch multiple updates in a daisy-chain. + parameter to batch multiple updates in a daisy-chain. By default, the + SET_LED command will sync it's changes with other ongoing gcode commands. + This can lead to undesirable behavior if LEDs are being set while the + printer is not printing as it will reset the idle timeout. If careful + timing is not needed, the optional SYNC=0 parameter can be specified to + apply the changes instantly and not reset the idle timeout. ## Servo Commands -- cgit v1.2.3-70-g09d2