#include #define NUM_LEDS 10 #define LED_PIN 2 CRGB leds[NUM_LEDS]; void setup() { FastLED.addLeds(leds, NUM_LEDS); FastLED.setBrightness(50); Serial.begin(57600); } void loop() { uint8_t sinBeat = beatsin8(30, 0, NUM_LEDS - 1, 0, 0); uint8_t sinBeat2 = beatsin8(30, 0, NUM_LEDS - 1, 0, 85); uint8_t sinBeat3 = beatsin8(30, 0, NUM_LEDS - 1, 0, 170); // If you notice that your pattern is missing out certain LEDs, you // will need to use the higher resolution beatsin16 instead. In this // case remove the 3 lines above and replace them with the following: // uint16_t sinBeat = beatsin16(30, 0, NUM_LEDS - 1, 0, 0); // uint16_t sinBeat2 = beatsin16(30, 0, NUM_LEDS - 1, 0, 21845); // uint16_t sinBeat3 = beatsin16(30, 0, NUM_LEDS - 1, 0, 43690); leds[sinBeat] = CRGB::Green; leds[sinBeat2] = CRGB::Blue; leds[sinBeat3] = CRGB::Red; EVERY_N_MILLISECONDS(1){ for(int i = 0; i < 4; i++) { blur1d(leds, NUM_LEDS, 50); } } //fadeToBlackBy(leds, NUM_LEDS, 10); FastLED.show(); }