Skip to content

Instantly share code, notes, and snippets.

@AlexJWayne
Created January 11, 2015 00:55
Show Gist options
  • Select an option

  • Save AlexJWayne/e12b87615c87e88e32b5 to your computer and use it in GitHub Desktop.

Select an option

Save AlexJWayne/e12b87615c87e88e32b5 to your computer and use it in GitHub Desktop.
#include "FastLED.h"
#define NUM_LEDS 12
#define DATA_PIN 3
CRGB leds[NUM_LEDS];
uint8_t hue = 0;
void setup() {
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
}
void loop() {
hue++;
for (uint8_t i = 0; i < NUM_LEDS; i++) {
leds[i] = CHSV(hue, 255, 255);
}
FastLED.show();
delay(10);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment