MWS,
I tested the code it works! but there is a odd thing happening.
I used the same board (Crumb Xmega128A3) and put the strip on PD3.
Other changes I made were led portd.0 and dat file for A3 to make it compatible with my board.
Observations:
- Dataframe for 1 LED is about 28.3 uS so well within spec.
- Delay after each dataframe is about 59.4 uS , remains the same even if "RGBunits" value is changed, good also.
Then there is one odd thing (bug?):
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.
Same happens with any other value > 1.
When I fill the other ellements of the array the color of the above scenario remains for the highest led but other leds also switch on.
I seems that the data in array is starting from furthest point, ie start of ledarr() data is at highest value of "RGBunits".
Is this suppose the be like that?
Jim
↧