libdriver / ws2812b

WS2812B full function driver library for general MCU and Linux.
https://www.libdriver.com
MIT License
192 stars 45 forks source link

Color instability for ws2812B leds on RPI4B #22

Open aleksas opened 1 year ago

aleksas commented 1 year ago

Version

1.0.0

Describe the bug

On Raspbery Pi 4b modified code to flicker in a 500 cycle loop from default color (RED) to none (color 0x00) with 8ms delay . Most of the times color goes from red to turned off, but sometimes all leds shine white color for some cycles and then go back to switching between red and off.

https://user-images.githubusercontent.com/594470/234815505-7c77be63-03a9-4016-aca1-a3e88367b4fc.mp4

Tried to play with SPI speed and one_code / zero_code values without any significant improvement.

Reproduce

App executed using following command: ws2812b -e write --number 24

Expected behavior

Stable flickering between RED and turning off

Additional context

No response

libdriver commented 1 year ago

It may be related to the timing reset signal, and we have fixed this issue. You can pull and test again.

aleksas commented 1 year ago

Issues still present after update

https://github.com/hepingood/ws2812b/assets/594470/1a32dad7-b157-4c25-9def-b85d3a1f7f47

It may also be related to this issue/feature in RPI itself