Hey guys! First post ever!
I'm trying to initialize 53 pins and then boolean statements... I'm having a lot of trouble with the boolean statements. I don't know how else to put it besides giving you my portion of the code:
int Pinset[]={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53}; //Array
boolean ON[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53}; //Array for boolean
void setup()
{
for(int j=0;j<54;j++)
pinMode(Pinset[j],OUTPUT); //All these pins will be considered output pins
for (int z=0;z<54;z++)
boolean ON[z]=false; //Trouble Portion -- Why won't this work and what's the solution?
Serial.begin(9600);
}
I get an error "variable-sized object 'ON' may not be initalized"
What's the solution to bringing in 54 boolean statements without having to type them all out?
Thank you ahead of time for being nice!