#include "FastLED.h" // How many leds in your strip? #define NUM_LEDS 240 #define DATA_PIN 6 #define FORWARD 0 #define BACKWARD 1 #define SLOW 250 #define MEDIUM 50 #define FAST 5 CRGB leds[NUM_LEDS]; boolean direction = FORWARD; void setup() { FastLED.addLeds(leds, NUM_LEDS); randomSeed(analogRead(0)); Serial.begin(9600); } void loop() { rainbow(0,NULL); delay(3000); colorWipe(CRGB::Black,FORWARD,FAST); allRandom(); delay(3000); disolve(15,100,MEDIUM); for(int i=0; i<3; i++){ CRGB c1 = randomColor(); CRGB c2 = randomColor(); stripes(c1,c2,5); delay(2000); stripes(c2,c1,5); delay(2000); } for(int i=0; i<2; i++){ cylon(randomColor(), 10,FAST); } lightning(NULL,15,50,MEDIUM); lightning(CRGB::White,20,50,MEDIUM); for(int i=0; i<3; i++){ theaterChase(randomColor(),10,SLOW); } theaterChaseRainbow(1,MEDIUM); rainbow(FAST,1); flash(randomColor(),10,SLOW); flash(NULL,50,MEDIUM); for(int i=0; i<2; i++){ colorWipe(randomColor(),FAST,direction); direction = !direction; } } // Changes all LEDS to given color void allColor(CRGB c){ for(int i=0; i= 0; i--) { for(int j=0; j