Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <FastLED.h>
- #define NUM_LEDS 50
- #define MAX_MA 2000
- #define CHIPSET WS2812B
- #define DATA 3
- CRGBArray<NUM_LEDS> leds;
- void setup() {
- FastLED.addLeds<CHIPSET, DATA>(leds, NUM_LEDS);
- }
- // put your setup code here, to run once:
- void loop() {
- for (int i = 0; i < NUM_LEDS; i++) {
- fill_solid( &(leds[i]), NUM_LEDS, CRGB::Blue );
- leds.fadeToBlackBy(100);
- leds[i] = CRGB::White;
- FastLED.delay(64);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement