Hello,
I'm still fairly new to the programming language used for Arduino's. I was wondering if there is anyway to tell several variables to do the same thing? For example having 7 individual LEDs and commanding them to turn on/off in a single line of code instead writing a line of code for each LED?
So having...
analogWrite(led1....led7, 255);
delay(50);
analogWrite(led1....led7, 0);
delay(50);
instead of having....
analogWrite(led1 , 255);
analogWrite(led2 , 255);
analogWrite(led3 , 255);
analogWrite(led4 , 255);
and so forth.
Any guidance would be greatly appreciated.