Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <FastLED.h>
- #define NUM_LEDS 1
- #define DATA_PIN 5
- CRGB leds[NUM_LEDS];
- void setup() {
- FastLED.addLeds<WS2813, DATA_PIN, RGB>(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