Hi Hans, me again
Got another question, im not sure if its possible. ive been scratching my head but i dont really get how the "color wheel" works.
imagine i have a strip of LED's in 4 rows, (not the same length as the arc would make the inside shorter)
for instance, wired like this
Row1 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 (outside)
Row2 29,28,27,26,25,24,23,22,21,20,19,18,17,16
Row3 30,31,32,33,34,35,36,37,38,39,40,41
Row4 51,50,49,48,47,46,45,44,43,42 (inside)
then, i want each whole row to be the same colour, and then graduating to each row through the colour wheel.
(crudely, Row4 Red, Row3 Orange, Row2 Yellow, Row1 green, THEN Row4 Orange, Row3 Yellow, Row2 Green, Row1 Blue, etc )
Do you see where im going with this? i was thinking i could use 4 arrays, eg
int Row1[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
or maybe modifying the "SetAll", one for each row like
void Row1(byte red, byte green, byte blue) {
for(int i = 0; i < 16; i++ ) {
setPixel(i, red, green, blue); // Wheel??
}
}
but i cant seem to get my head into how to push the rainbow through the 4 rows.
Any help would be much appreciated.
Regards
Ross.