Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <FastLED.h>
- #define DATA_PIN 18
- constexpr auto NUM_LEDS = 8*8;
- CRGB leds[NUM_LEDS];
- void setup() {
- // put your setup code here, to run once:
- FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
- for (auto i = 0; i < NUM_LEDS; ++i)
- leds[i] = CRGB::Black;
- }
- void loop() {
- for (int dot = 0; dot < NUM_LEDS; ++dot) {
- leds[dot] = CRGB::Blue;
- FastLED.show();
- // clear this led for the next time around the loop
- leds[dot] = CRGB::Black;
- //delay(30);
- }
- }
Add Comment
Please, Sign In to add comment