Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <FastLED.h>
- #define NUM_LEDS 10
- #define DATA_PIN D1
- #define CLOCK_PIN 13
- CRGB leds[NUM_LEDS];
- void setup() {
- Serial.begin(9600);
- delay(1500);
- FastLED.addLeds<WS2812, DATA_PIN>(leds, NUM_LEDS);
- }
- void loop() {
- leds[0] = CRGB::Red;
- FastLED.show();
- delay(500);
- leds[0] = CRGB::Black;
- FastLED.show();
- delay(500);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement