#include #define PIXEL_PIN 7 #define PIXELS 20 #define MAX_BRIGHTNESS 192 #define SCAN_WIDTH 3 //number of pixels sets width of "scanner" #define SCAN_SPEED 30 //how fast it moves larger number is slower speed #define SCAN_RETURN 40 //how long it pauses before changing direction CRGB leds[PIXELS]; /* HSV Color Arrays HUE Values (0-255) 0 = RED 32 = ORANGE 64 = YELLOW 96 = GREEN 128 = AQUA 160 = BLUE 192 = PURPLE 224 = PINK */ //HSV Arrays (HUE, SATURATION, BRIGHTNESS) int BLACK[3] = {0,0,0}; int WHITE[3] = {0,0,255}; //draws a lot of current int DIMWHTIE[3] = {0,0,192}; //less current draw int RED[3] = {0,255,255}; int LTRED[3] = {0,170,255}; int ORANGE[3] = {32,255,255}; int LTORANGE[3] = {32,170,255}; int YELLOW[3] = {64, 255,255}; int LTYELLOW[3] = {64,170,255}; int GREEN[3] = {96,255,255}; int LTGREN[3] = {96,170,255}; int AQUA[3] = {128,255,255}; int BLUE[3] = {160,255,255}; int LTBLUE[3] = {160,170,255}; int PURPLE[3] = {192,255,255}; int LTPURPLE[3] = {192,170,255}; int PINK[3] = {224,255,255}; void setup() { FastLED.addLeds(leds, PIXELS); LEDS.setBrightness(MAX_BRIGHTNESS); } void loop() { CylonBounce(RED); } void CylonBounce(int color[3]) { for(int i = 0; i < PIXELS-SCAN_WIDTH-2; i++) { for(int i=0; i 0; i--) { for(int i=0; i