Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //testing fill_gradient
- #include "FastLED.h"
- #define DATA_PIN 11
- #define CLOCK_PIN 13
- #define LED_TYPE LPD8806
- #define COLOR_ORDER GRB
- #define NUM_LEDS 32
- CRGB leds[NUM_LEDS];
- void setup() {
- delay(3000);
- FastLED.addLeds<LED_TYPE,DATA_PIN,CLOCK_PIN,COLOR_ORDER>(leds, NUM_LEDS);
- FastLED.setBrightness(15); // <---***NOTE, setting this very low***
- }
- void loop(){
- fill_solid(leds, NUM_LEDS, CHSV(0,255,255));
- FastLED.show();
- delay(5000);
- fill_solid(leds, NUM_LEDS, CHSV(0,0,0));
- FastLED.show();
- delay(30);
- fill_gradient(leds, 0, CHSV(0,255,255), NUM_LEDS, CHSV(2,255,255));
- //fill_gradient_RGB(leds, 0, CRGB(255,0,0), NUM_LEDS, CRGB(253,0,0));
- FastLED.show();
- delay(2000);
- fill_solid(leds, NUM_LEDS, CHSV(0,0,0));
- FastLED.show();
- delay(4000);
- }
Advertisement
Add Comment
Please, Sign In to add comment