   uint16_t t=0;
   while(l){
     t++;
-    if (digitalRead(C_BUTTON) == LOW && Lux < 240) {
+    if (digitalRead(P_BUTTON) == LOW && Lux < 240) {
         delay(250);
         Lux += 15;
         t=0;
     } 
-    if (digitalRead(P_BUTTON) == LOW && Lux > 15) {
+    if (digitalRead(C_BUTTON) == LOW && Lux > 15) {
       delay(250);
       Lux -= 15;
       t=0;
     } 
     strip.setBrightness(Lux);
     strip.show();
-    if (t>1000){
+    if (t>2000){
       EEPROM.update(1, Lux);
       l=0;
     }

    P_MODE = 7;
    EEPROM.update(3, P_MODE);
  }
    if (!digitalRead(P_BUTTON)){
    colorChange(strip.Color(50, 50, 50));
    delay(100);
    LEDSsetup(1);
  }
    if (!digitalRead(C_BUTTON)){
    colorChange(strip.Color(50, 50, 50));
    delay(100);
    LUXsetup(1);
  }

  }
}

void STrigColor(){
     if (STrigger){
        C_MODE += 1;
        if (C_MODE > 10)C_MODE = 1;
        colorMode(C_MODE);
        wait = 20;
      }
}
// Set the number of LEDs that will be used
void LEDSsetup(int l) {
  uint16_t t=0;
