Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // simple test
- #include "FastLED.h"
- #define NUM_LEDS 90
- #define PIN 12
- CRGB leds[NUM_LEDS];
- void setup() {
- FastLED.addLeds<WS2812B, PIN, GRB>(leds, NUM_LEDS);
- }
- void loop() {
- leds[0] = CRGB(0,0,0); //off
- leds[1] = CRGB(255,255,255); //white
- leds[2] = CRGB(255,0,0); //red
- leds[3] = CRGB(0,255,0); //green
- leds[4] = CRGB(0,0,255); //blue
- FastLED.show();
- delay(1000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement