mirror of https://github.com/Desuuuu/klipper.git
neopixel: Warn that the neopixel isn't currently supported on AVR
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
d5cc2a7b7b
commit
e3c5638147
|
@ -23,6 +23,9 @@ class PrinterNeoPixel:
|
|||
self.cmd_SET_NEOPIXEL,
|
||||
desc=self.cmd_SET_NEOPIXEL_help)
|
||||
def build_config(self):
|
||||
if self.mcu.get_constant_float('CLOCK_FREQ') <= 20000000:
|
||||
raise self.printer.config_error(
|
||||
"Neopixel is not supported on AVR micro-controllers")
|
||||
cmd_queue = self.mcu.alloc_command_queue()
|
||||
self.neopixel_send_cmd = self.mcu.lookup_command(
|
||||
"neopixel_send oid=%c data=%*s", cq=cmd_queue)
|
||||
|
|
Loading…
Reference in New Issue