       delayMicroseconds(1000*pow(timeMultiplier,1));
     }
     lastUpdate = intensity;
-  } else if (mode == BASSFADE) {
+  } else if (mode == MODE_BASSFADE) {
     if (out < 15) out = 0;
     while (abs(allLedValue-out) > 1.0) {
       allLedValue += 2*sign(out-allLedValue);

    if (digitalRead(2) == 1) return;
    Serial.print("");
  }
  mode++;
  if (mode > MODE_MAX) {
    mode = 0;
  }
  EEPROM.write(0, mode);
  rawWriteColor(0, 0, 0, 0);
  timer_start = micros();

    }
    Serial.println(out);
    lastUpdate = out;
  } else if (mode == MODE_OFF){
    rawWriteColor(0, 0, 0, 0);
  }
  // Serial.println("RNNING");
}
