diff --git a/src/mgos_neopixel.c b/src/mgos_neopixel.c index cb7668f..26dff1d 100644 --- a/src/mgos_neopixel.c +++ b/src/mgos_neopixel.c @@ -83,8 +83,10 @@ void mgos_neopixel_clear(struct mgos_neopixel *np) { void mgos_neopixel_show(struct mgos_neopixel *np) { mgos_gpio_write(np->pin, 0); mgos_usleep(60); +#if MGOS_ENABLE_BITBANG mgos_bitbang_write_bits(np->pin, MGOS_DELAY_100NSEC, 3, 8, 8, 6, np->data, np->num_pixels * NUM_CHANNELS); +#endif mgos_gpio_write(np->pin, 0); mgos_usleep(60); mgos_gpio_write(np->pin, 1);