       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);

      int delayMS = 3000 / pow((abs(lastUpdate-intensity) + 1), 1);
      //  Serial.println(delayMS);
      
      delayMicroseconds(1000*pow(timeMultiplier,1));
    }
    lastUpdate = intensity;
  } else if (mode == SINGLE_WHITE) {  
    while (abs(allLedValue-intensity) > 1.0) {
      allLedValue += 0.4 * sign(intensity-allLedValue);
      // writeColor(0,0,255,led1Value);

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