News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

Strange WS2812 issues

Started by RGV250, Today at 01:33 AM

Previous topic - Next topic

RGV250

Hi,
I have been tearing my hair out with strange issues with the WS2812B.inc file.
I am not sure if this is all my problems but when i increase the length of the strip over 128 all sort of things happen. 128 is fine but 129 with no other code changes causes the issue.
In the 2 screenshots, The LED_OK shows a blue LED at position 128 but when I change WS2812B_Amount to 129 it puts it in position 0 where I expected it to be where the arrow is.
It could be a simulation issue but I can't tell yet as I have not got the hardware.

LED_OK.JPG
LED_NOK.JPG

I also found it caused problems under 40Mhz which is not a problem now as I am using 48Mhz. This was tested with an actual device as I had a 12 LED ring to try to get it working initially.

VSM and Positron files.
WS2812B_Strip_18F2550_2A.zip

Regards,
Bob