lavallc / nrf51-neopixel

WS2812(Neopixel) library for the Nordic Semiconductor 51822 Bluetooth Low Energy ARM SoC.
MIT License
60 stars 22 forks source link

Strange behaviour with micro:bit #6

Open joachimhs opened 4 years ago

joachimhs commented 4 years ago

Hello,

I am trying to get this to work with micro:bit, but it is behaving strange. The first time I update the pixels, they all show as they are supposed to, but every second time all of the pixels light up yellow-ish.

I have tried to play around with the number of NOPS, but that does not seem to work.

This is the code I am using towards the NeoPixels:

`for (uint16_t lampe = 0; lampe < 64; lampe++) { neopixel_set_color(&m_strip, lampe, 10, 0, 0); neopixel_show(&m_strip); uBit.sleep(200);

}`