#define BETWEEN_FADE 15 #define FADE_RATE 15 #define BLINK_RATE 250 //------------------------------------------------------ // Clearing The LED Strip //------------------------------------------------------ void LED_CLEAR() { // Make Sure Of The Core #ifdef ESP32 LED_BOOST_CHK(); #endif // Clear The Strip Color pixels.clear(); // Make Sure Of The Core #ifdef ESP32 delay(1); #endif // Show On LED Strip LED_SHOW(); // Make Sure Of The Core #ifdef ESP32 BOOST_OFF; #endif } //------------------------------------------------------ // DISPLAY ON STRIP //------------------------------------------------------ void LED_SHOW() { // Make Sure Of The Core #ifdef ESP32 LED_BOOST_CHK(); #endif // Pass It To The LED Strip pixels.show(); } //------------------------------------------------------ // Set LED Brightness //------------------------------------------------------ void LED_SET_BRIGHTNESS(uint8_t Value) { // Make Sure Of The Core #ifdef ESP32 LED_BOOST_CHK(); #endif // Set The Brightness pixels.setBrightness(Value); } //------------------------------------------------------ // Set LED Color //------------------------------------------------------ void LED_SET_COLOR(uint8_t R, uint8_t G, uint8_t B, uint8_t Intensity) { // Make Sure Of The Core #ifdef ESP32 LED_BOOST_CHK(); #endif // Set Intensity LED_SET_BRIGHTNESS(Intensity); // Loop for(int i=0; i=0; i--) { pixels.setBrightness(i); for(int j=0; j