From e3c5638147c1e3136e0299d2c8e4b9924e61d40d Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 17 Jul 2019 16:54:47 -0400 Subject: [PATCH] neopixel: Warn that the neopixel isn't currently supported on AVR Signed-off-by: Kevin O'Connor --- klippy/extras/neopixel.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/klippy/extras/neopixel.py b/klippy/extras/neopixel.py index 6988b645..9c9d4bee 100644 --- a/klippy/extras/neopixel.py +++ b/klippy/extras/neopixel.py @@ -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)