#include #define NUM_LEDS 16 #define DATA_PIN 2 CRGB leds[NUM_LEDS]; void setup() { FastLED.addLeds(leds, NUM_LEDS); //start for( int i = 0; i < NUM_LEDS; i++) { int col = 250 + i*15; leds[i] = CHSV((col), (200), (255)); FastLED.show(); delay(100); } for( int i = 0; i < NUM_LEDS; i++) { int col = 220 + i*15; leds[i] = CRGB::Black; // FastLED.show(); delay(100); } } void loop() { for( int i = 0; i < NUM_LEDS; i++) { leds[i] = CRGB::Red; FastLED.show(); } delay(500); for( int i = 0; i < NUM_LEDS; i++) { leds[i] = CRGB::Black; FastLED.show(); } delay(500); for( int i = 0; i < NUM_LEDS; i++) { leds[i] = CRGB::Green; FastLED.show(); } delay(500); for( int i = 0; i < NUM_LEDS; i++) { leds[i] = CRGB::Black; FastLED.show(); } delay(500); for( int i = 0; i < NUM_LEDS; i++) { leds[i] = CRGB::Blue; FastLED.show(); } delay(500); for( int i = 0; i < NUM_LEDS; i++) { leds[i] = CRGB::Black; FastLED.show(); } for( int i = 0; i < 100; i++) { int col = random(360); int nr = random(16); leds[nr] = CHSV((col), (200), (255)); FastLED.show(); delay(100); leds[nr] = CRGB::Black; FastLED.show(); } delay(500); for( int i = 0; i < 100; i++) { int col = random(360); int nr = random(16); leds[nr] = CHSV((col), (200), (255)); FastLED.show(); delay(100); nr = random(16); leds[nr] = CRGB::Black; FastLED.show(); } delay(500);*/ }