Try to develop Driver for WS2812B

I used nRF52840 board with SDK 17_1_0 ,

I want to used WS2812B in my project so any one can give me  reference code for this or

can suggest me how can i implement its driver in segger embedded studio.

  • Hello,

    Sorry for the late reply. We are a bit short staffed at the moment.

    We don't have any drivers for this one in the nRF5 SDK, unfortunately. 

    I have seen a few drivers around, and most of them use either I2S or SPI to simulate the timing requirements of this driver. 

    It would be possible to bit bang this protocol, but if you intend to do anything (!) else, such as do anything Bluetooth related, this would fail pretty quickly. Therefore it is a good idea to use a hardware peripheral that will not stop when the CPU needs to handle, e.g. Bluetooth stuff. 

    One example of these drivers is this one:

    https://github.com/edwios/nRF5_WS2812B/tree/master

    I have not tested it, but if you search for "WS2812B nRF5 SDK" you should be able to find a few that you can test.

    Another post you can check is this one:

     Driving WS2812B LEDs using I2S on the Nordic nRF52832 

    Best regards,

    Edvin

Related