Here is a sample of my new LED blossom.
I have attached the layout of the LED's. I am wanting to remap it so it will spiral into (or out of) itself.
I rearranged it into a multidimensional array but the function does not do anything, maybe i'm missing something easy:
int blue = 0;
int green = 32;
int red = 64;
void fibi(int endcount, int wait){
int sequence[8][4]={ {0, 9, 18, 27},
{8, 17, 26, 4},
{16, 25, 5, 12},
{24, 6, 3, 20},
{7, 14, 21, 28},
{15, 22, 29, 3},
{23, 30, 2, 11},
{3, 1, 10, 19}
};
for (int howmanytimes = 0; howmanytimes < endcount; howmanytimes++){
Tlc.clear();
for (int k = 0; k < 4; k++){
for (int i = 0; i < 8; i++){
for ( int j = 0; j < 96; j++){ // this cycles the color wheel + 3 for each bluepower[?} etc..
choice[j] = choice[j] + 3;
if (choice[j] > 95 ){
choice[j] = 0;
}
}
Tlc.set(blue + sequence*[k], bluepower[k]);*
Tlc.set(green + sequence*[k], greenpower[k]);*
Tlc.set(red + sequence*[k], redpower[k]);*
}
* Tlc.update();*
delay(wait);
}
* }*
}