Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const uint16_t N_PX = 300;
- const uint8_t PXPIN = A0;
- CRGB Pixels[N_PX];
- Comet Cmt = Comet(CRGB Pixels, N_PX);
- void setup() {
- pinMode(PXPIN, OUTPUT);
- FastLED.addLeds<WS2811, PXPIN, RGB>(Pixels, N_PX);
- //first pixel magenta just to prove the connections are good and it's not my code...
- Pixels[0]= CRGB::Magenta;
- FastLED.show();
- //setup the comet with these functions...
- Comet.setHue(100);
- Comet.setSpeed(200);
- Comet.setFade(10);
- }
- void loop() {
- Comet.Animate();
- FastLED.show()
- }
Advertisement
Add Comment
Please, Sign In to add comment