strip.setBrightness

Is there a way to place the values of desired brightness into an array thus controlling the brightness set by using strip.setBrightness ?

I would like to add the function of brightness up and down with an IR remote but when I setup the array like this "int BrightnessControl [] = {35,70,128,192};" and call it later;

case 0xFF3AC5:
Serial.println("Brightness Down");
BrightnessControl []--;

I get this error; error: expected primary-expression before ‘]’ token

What am I missing ?

.... many thanks for any/all comments !

you are not indexing into the BrightnessControl array in your decrement line.

you would need to specify which value in the BrightnessControl array you would like to decrement

for example BrightnessControl[0]-- will decrease the first value in your array, 35, to 34, BrightnessControl[3]-- would decrement 192 to 191 etc..

without an index into the array, the compiler does not know how to interpret the "BrightnessControl[]--" statement.