Jim,
[quote:da2bee8ad7="Flyby123"]When I set to "RGBunits" e.g. to 3 and ONLY fill ledarr() pos 0,1,2 (colours of led 1) the third LED lights up with these colours, leds 1 and 2 are off.
Is this suppose the be like that?[/quote:da2bee8ad7]
Hmm, some things seem not clear, for example:
[quote:da2bee8ad7]Same happens with any other value > 1. [/quote:da2bee8ad7]
Check the attached LA-output, it corresponds to these settings:
[code:1:da2bee8ad7]'### user configurable ###
Const RGBunits = 3 ' total count of RGB units
Const rstto = 2 ' reset timeout, 1 equals one empty frame, 24 bits * 1,25µs = 30µs
'### user configurable ###
ledarr(0) = 128
ledarr(1) = 170
ledarr(2) = 85[/code:1:da2bee8ad7]
For my code ledarr(0) is the very first led in the chain, because it is sent last. It has partly to do with, that I send the leds decreasing in numbers, as in assembler it's easier to count down and check against zero, than to count up and check against an upper value. Beside that, it's logical that the first led, where data goes in, is led number 0.
So a frame starts with the highest led in the array.
[quote:da2bee8ad7]the third LED lights up[/quote:da2bee8ad7]
Where do you start to count from ?
Also, if you drive a stripe with a lower RGBunits setting, as RGB leds are connected to, it may be that the latter WS2811 behave irregularly, you have to ignore them for the test.
Or, set RGBUnits to the number of RGBs of one stripe.
I do not think, that A3 vs. A1 makes any difference here, but to be sure you can do a snapshot of the frame and compary it to mine and your earlier results.
↧