aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-07-17 16:54:47 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-07-17 16:54:47 -0400
commite3c5638147c1e3136e0299d2c8e4b9924e61d40d (patch)
tree2534b18a863fdf9328123a59eaed190f93857b18
parentd5cc2a7b7beeda9f797228c98cc57b4aa0d03ab4 (diff)
downloadkutter-e3c5638147c1e3136e0299d2c8e4b9924e61d40d.tar.gz
kutter-e3c5638147c1e3136e0299d2c8e4b9924e61d40d.tar.xz
kutter-e3c5638147c1e3136e0299d2c8e4b9924e61d40d.zip
neopixel: Warn that the neopixel isn't currently supported on AVR
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--klippy/extras/neopixel.py3
1 files changed, 3 insertions, 0 deletions
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)