Hi Folks, I'm trying to get a number from my array "litestate(12,4)". but when i try to retrieve a number from the array I get "litestate cannot be used as a function"
int litestate[12][4]=
{
{1,0,0,0},
{0,1,0,0},
{0,0,1,0},
{0,0,0,1},
{1,1,0,0},
{1,0,1,0},
{1,0,0,1},
{0,1,1,0},
{0,1,0,1},
{0,0,1,1},
{1,1,1,0},
{1,1,1,1}
};
// colum = random(0,13);
// for (row = 0; row <= 4; row++);
// int state = litestate(colum,row);
// digitalWrite(row+1, state);
this gets me "litestate cannot be used as a function"
basically i have four lights i want to turn on and off, hence the array 1=on 0=off