Hi Everyone,
I'm new with Arduino and trying to get to use arduino to control xmas led strips.
I've made a snowflake that I want to animate. Therefore, I've created arrays for the different parts of an arm of the snowflake.
int innerstar[8] = {2, 4, 1, 3, 30, 27, 29, 28};
int outterstar[12] = {9, 10, 8, 11, 7, 12, 24, 19, 23, 20, 22, 21};
int branch[10] = {5, 6, 13, 14, 15, 16, 17, 18, 25, 26};
My problem is the following. Instead of creating 6 arrays for each part, or one array with 6 times as many leds, is it possible to increment the numbers of the arrays ?
I've tried this (not optimized yet), but it doesn't work anyway.
for (int i = 0; i <= 8; i++) {
leds[[innerstar[i]] = CRGB (0, 0, 255);
leds[[innerstar[i]+30] = CRGB (0, 0, 255);
leds[[innerstar[i]+60] = CRGB (0, 0, 255);
FastLED.show();
}
Is it possible to increment the numbers of the arrays this way ?
Thank you for your help.