Skip to content

Instantly share code, notes, and snippets.

@StefanPetrick
Created March 7, 2016 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StefanPetrick/b546a58f938e63562897 to your computer and use it in GitHub Desktop.
Save StefanPetrick/b546a58f938e63562897 to your computer and use it in GitHub Desktop.
#include "FastLED.h"
#define NUM_LEDS 144
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<APA102, 7, 14, BGR, DATA_RATE_MHZ(24)>(leds, NUM_LEDS);
}
void loop() {
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = 0xFF0000;
FastLED.show();
leds[i] = 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment