summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Cross <sean@xobs.io>2020-04-17 10:36:26 +0800
committerSean Cross <sean@xobs.io>2020-04-21 09:56:27 +0800
commitac9d336f40634419617d13464e87ab6917f9152a (patch)
treeaadcf0ab3446809ac47fa878acaeffabe8a92d04
parent05b5356accefa02a868064fbc402a4646535004d (diff)
nrf: make neopixel support optional
Add a conditional around the call to neopixel_write(), allowing us to build for nrf without neopixel support. Signed-off-by: Sean Cross <sean@xobs.io>
-rw-r--r--ports/nrf/supervisor/port.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/nrf/supervisor/port.c b/ports/nrf/supervisor/port.c
index cbe0cec54..1b92e7832 100644
--- a/ports/nrf/supervisor/port.c
+++ b/ports/nrf/supervisor/port.c
@@ -104,7 +104,10 @@ void reset_port(void) {
i2c_reset();
spi_reset();
uart_reset();
+
+#if CIRCUITPY_NEOPIXEL_WRITE
neopixel_write_reset();
+#endif
#if CIRCUITPY_AUDIOBUSIO
i2s_reset();