Switch between color/brightness with rotary encoder for Nano (RGB LED Strip)

encoderFunction = !encoderFunction;

This command will change TRUE to FALSE or vice versa.