NeoPixel on nRF5340

Hi,

Is it possible to use the Adafruit_NeoPixel library with the nRF5340 DK? I tried controlling an 8-pixel module using Zephyr’s led_strip example, but it didn’t work. I believe the pixels use the WS2812 protocol.

Has anyone successfully controlled NeoPixels with this board?

Thanks!

Parents Reply Children
  • For controlling the nRF pins directly I would look at the zephyr driver source code that is used.
    ncs\v2.9.0\zephyr\drivers\gpio\gpio_nrfx.c

    For an example of the driver using gpio I would look at
    ncs\v2.9.0\zephyr\drivers\led_strip\ws2812_gpio.c


    I also could be wrong and the gpio driver implementation might work.

    config WS2812_STRIP_GPIO
         bool "WS2812 LED strip GPIO driver"
         # Only an Cortex-M inline assembly implementation for the nRF91, nRF51,
        # nRF52 and nRF53 is supported currently.

    I would suggest looking at v2.9.0\zephyr\dts\bindings\led_strip\worldsemi,ws2812-gpio.yaml for the driver binding

Related