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>
This commit is contained in:
Sean Cross 2020-04-17 10:36:26 +08:00
parent 05b5356acc
commit ac9d336f40
1 changed files with 3 additions and 0 deletions

View File

@ -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();