src/Preset_modes.h
void handleLEDSettings(){ // HANDLE LED SETTINGS
if (effect_function != NULL && (executeScript)){
    effect_function();
    }
else if ((!executeScript) && (dimming)){
    if (millis() - previousMillis2 >= 35) { 
    previousMillis2 = millis(); 
    fadeCounter++;
    fadeToBlackBy(leds, NUM_SET,25);
    FastLED.show();
          if (fadeCounter >= 60){     
          changeModus = true;
          dimming=false;
          executeScript=true;
          fadeCounter=0;    
          }  
    }
}
return;
}
/*
 * This file contains all the LED program cases
 */
This file contains all the LED program cases
This file contains all the LED program cases
void handleLEDSettings(){ 
if (effect_function != NULL && (executeScript)){
    effect_function();
    }
else if ((!executeScript) && (dimming)){
    if (millis() - previousMillis2 >= 35) { 
    previousMillis2 = millis(); 
    fadeCounter++;
    fadeToBlackBy(leds, NUM_SET,25);
    FastLED.show();
          if (fadeCounter >= 60){     
          changeModus = true;
          dimming=false;
          executeScript=true;
          fadeCounter=0;    
          }  
    }
}
return;
}
void handleLEDSettings ( ) { if ( effect_function != NULL && ( executeScript ) ) { effect_function ( ) ; } else if ( ( ! executeScript ) && ( dimming ) ) { if ( millis ( ) - previousMillis2 >= 35 ) { previousMillis2 = millis ( ) ; fadeCounter ++ ; fadeToBlackBy ( leds , NUM_SET , 25 ) ; FastLED . show ( ) ; if ( fadeCounter >= 60 ) { changeModus = true ; dimming = false ; executeScript = true ; fadeCounter = 0 ; } } } return ; }
This file contains all the LED program cases
This file contains all the LED program cases
// HANDLE LED SETTINGS