Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // An RGBCalibrate
- #include "FastLED.h"
- #define NUM_LEDS 30
- #define DATA_PIN 12
- CRGB leds[NUM_LEDS];
- void setup() {
- FastLED.addLeds<WS2812, DATA_PIN, GRB>(leds, NUM_LEDS);
- }
- void loop() {
- leds[0] = CRGB(255, 0, 0); // Red
- leds[1] = CRGB(0, 255, 0); // Green
- leds[2] = CRGB(0, 255, 0); // Green
- leds[3] = CRGB(0, 0, 255); // Blue
- leds[4] = CRGB(0, 0, 255); // Blue
- leds[5] = CRGB(0, 0, 255); // Blue
- leds[6] = CHSV(0, 0, 255); // https://github.com/FastLED/FastLED/wiki/Pixel-reference#setting-hsv-colors
- FastLED.show();
- delay(1000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement