From 254789f4c570426f589e3cf966dac12a0600b6a5 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 15 Dec 2019 23:24:17 -0500 Subject: neopixel: Add support for delaying updates in SET_LED command Signed-off-by: Kevin O'Connor --- klippy/extras/neopixel.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'klippy/extras/neopixel.py') diff --git a/klippy/extras/neopixel.py b/klippy/extras/neopixel.py index abd1c637..320435c5 100644 --- a/klippy/extras/neopixel.py +++ b/klippy/extras/neopixel.py @@ -60,8 +60,11 @@ class PrinterNeoPixel: blue = self.gcode.get_float('BLUE', params, 0., minval=0., maxval=1.) index = self.gcode.get_int('INDEX', params, None, minval=1, maxval=self.chain_count) + transmit = self.gcode.get_int('TRANSMIT', params, 1) self.update_color_data(red, green, blue, index) # Send command + if not transmit: + return print_time = self.printer.lookup_object('toolhead').get_last_move_time() self.send_data(self.mcu.print_time_to_clock(print_time)) -- cgit v1.2.3-70-g09d2