////====================================================== //// NEO PIXEL LED STRIP ////====================================================== //// PUBLIC DEFINITIONS ////------------------------------------------------------ // #define BETWEEN_FADE 15 // #define FADE_RATE 15 // #define BLINK_RATE 250 // #define ColorSaturation 128 ////------------------------------------------------------ //// PURE COLOR ////------------------------------------------------------ // RgbColor red(colorSaturation, 0, 0); // RgbColor green(0, colorSaturation, 0); // RgbColor blue(0, 0, colorSaturation); // RgbColor white(colorSaturation); // RgbColor black(0); ////------------------------------------------------------ //// HSL COLOR ////------------------------------------------------------ // HslColor hslRed(red); // HslColor hslGreen(green); // HslColor hslBlue(blue); // HslColor hslWhite(white); // HslColor hslBlack(black); ////------------------------------------------------------ //// Clearing The LED Strip ////------------------------------------------------------ // void LED_CLEAR() // { // // Make Sure Boost Is On // BOOST_ON; // // // Clear The Strip Color // PIXEL_STRIP.clear(); // // // Show On LED Strip // LED_SHOW(); // } ////------------------------------------------------------ //// DISPLAY ON STRIP ////------------------------------------------------------ // void LED_SHOW() // { // // Make Sure Boost Is On // BOOST_ON; // // // Pass It To The LED Strip // PIXEL_STRIP.show(); // } ////------------------------------------------------------ //// Set LED Brightness ////------------------------------------------------------ // void LED_SET_BRIGHTNESS(uint8_t Value) // { // // Make Sure Boost Is On // BOOST_ON; // // // Set The Brightness // PIXEL_STRIP.setBrightness(Value); // } ////------------------------------------------------------ //// Set LED Color ////------------------------------------------------------ // void LED_SET_COLOR(uint8_t R, uint8_t G, uint8_t B, uint8_t Intensity) // { // // Make Sure Boost Is On // BOOST_ON; // // // Set Intensity // LED_SET_BRIGHTNESS(Intensity); // // // Loop // for(int i=0; i=0; i--) // { // PIXEL_STRIP.setBrightness(i); // for(int j=0; j