Like I said the previous index of blue led is addressed.
I'm not saying there's a bug in the repo, because I used it fine in the recent past.
The problem affects both
WS2812_LED_SetRGB(led,2,val), and WS2812_LED_GetRGB(led,2,val)
i.e getting and setting the Blue led.
To make things work right I have made the following changes to ws2812.c (to get me out of trouble...)
if( colour == 0 )
colour_ix = 2;
else if( colour == 1 )
colour_ix = 0;
else if( colour == 2 ){
colour_ix = 1;
led++;
}
else
return -2; // unsupported colour
i.e increment led for the blue (and only blue) LED.
in both the Get and Set function.
This is obviously a problem of my own making but I can't see what i could have done to cause it! :-)