WS2811 Component

A forums to allow bugs and problems with Flowcode v7 to be reported and resolved.

Moderator: Benj

mnf
Valued Contributor
Valued Contributor
Posts: 606
Joined: Wed May 31, 2017 11:57 am
Has thanked: 56 times
Been thanked: 334 times
Contact:

WS2811 Component

Postby mnf » Tue Mar 20, 2018 9:13 am

In the WS2811 component the Red and Green arguments seem to be swapped (or just mislabeled)

So SetAllLEDColour(0, 255, 0) gives a RED string of LEDs instead of green...

Martin
These users thanked the author mnf for the post:
Benj (Tue Mar 20, 2018 12:02 pm)
Rating: 5.26%
 

User avatar
Benj
Matrix Staff
Posts: 14461
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4524 times
Been thanked: 4194 times
Contact:

Re: WS2811 Component

Postby Benj » Tue Mar 20, 2018 12:18 pm

Thanks Martin,

I'll look into this problem for you. On some of the LEDs we have here the Red and Green is swapped, I wonder if this is by design and open to be manufactured differently based on supplier or a mistake on the batch of LEDs we bought in? Either way I shhould be able to add the option as a property to suit both implementations.

I have a love hate relationship with these no brand Chinese products :wink:
These users thanked the author Benj for the post:
mnf (Wed Mar 21, 2018 9:37 pm)
Rating: 5.26%
 

User avatar
STibor
Posts: 262
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 114 times
Been thanked: 112 times
Contact:

Re: WS2811 Component

Postby STibor » Wed Mar 21, 2018 7:13 pm

Hello!

The WS28xx LED component can be manually parameterized.
Very good component.
One difficulty, interruptions (int, port) cause faulty display.
Attachments
custom_WSLED.png
custom_WSLED.png (41.3 KiB) Viewed 1768 times
These users thanked the author STibor for the post (total 2):
mnf (Wed Mar 21, 2018 9:37 pm) • Benj (Thu Mar 22, 2018 3:52 pm)
Rating: 10.53%
 

mnf
Valued Contributor
Valued Contributor
Posts: 606
Joined: Wed May 31, 2017 11:57 am
Has thanked: 56 times
Been thanked: 334 times
Contact:

Re: WS2811 Component

Postby mnf » Wed Mar 21, 2018 9:43 pm

Swapping to WS2812 - swaps green / red and could be that is what the chips are... No distinguishing markings - a bit like sexing penguins. (They seem pretty much compatible apart from the colour order)

I got myself into all sorts of confusion - as the colours in my 24 bit bitmap don't seem to be in BGR format promised by the wikipedia page. Still I managed to get bitmaps off SD card and onto a string of LEDs in a pleasing manner.

Martin
These users thanked the author mnf for the post:
Benj (Fri Mar 23, 2018 2:06 pm)
Rating: 5.26%
 

User avatar
STibor
Posts: 262
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 114 times
Been thanked: 112 times
Contact:

Re: WS2811 Component

Postby STibor » Fri Apr 20, 2018 11:56 am

Hello!

Controller: Arduino Nano (Atmega328 smd @ 16MHz)
The WS2812 LED does not work when data output is D0 and D1 (uart rx / tx).
Version Flowcode v7.2.1.4 here in the office, would not update if not needed (many projects would be affected by the upgrade).