 
 /* Maximum values of the different parameters, plus one. Zero denotes that a
  * variable can stretch the full range of 0-255. */
-uint8_t parameterMax[MAX_PARAMETERS] = { 1, 0, 0, 0, 0, 0, 0 };
+uint8_t parameterMax[MAX_PARAMETERS] = { MAX_MODES, 0, 0, 0, 0, 0, 0 };
 
 /* Rainbow colors, used to signify active parameter to the user. */
-CRGB rainbowColors[] = {
+CRGB rainbowColors[MAX_PARAMETERS] = {
     CHSV(0,   255, 255),
     CHSV(36,  255, 255),
     CHSV(73,  255, 255),

    parameters[activeParameter] += rotary_delta();
    parameters[activeParameter] %= parameterMax[activeParameter];

    /* Only one mode for now */
    modeSolid();
    FastLED.show();
}

/* This variable holds the LED color state. */
CRGB leds[NUM_LEDS];

/* All the different modes that are available. */
#define MAX_MODES 1
void modeSolid();
void (*modes[MAX_MODES])() = {
    &modeSolid
};

/* Currently active mode. */
uint8_t activeMode = 0;

/* Define the different parameters that can be changed using the rotary wheel. */
#define PARAMETER_MODE 0
#define PARAMETER_HUE 1
