Created
January 18, 2017 18:30
-
-
Save pikesley/9a8262a50204d6f78ebcc7a5d8ac69a0 to your computer and use it in GitHub Desktop.
Neopixel Jewel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Low power NeoPixel goggles example. Makes a nice blinky display | |
// with just a few LEDs on at any time. | |
#include <FastLED.h> | |
#define RING_LEDS 7 | |
#define RING_PIN 6 | |
CRGB ring[RING_LEDS]; | |
void setup() { | |
FastLED.addLeds<NEOPIXEL, RING_PIN>(ring, RING_LEDS); | |
} | |
void loop() { | |
ring[0] = CRGB::Red; | |
delay(1000); | |
FastLED.show(); | |
ring[1] = CRGB::Red; | |
delay(1000); | |
FastLED.show(); | |
ring[2] = CRGB::Red; | |
delay(1000); | |
FastLED.show(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment