Skip to content

Instantly share code, notes, and snippets.

@pikesley
Created January 18, 2017 18:30
Show Gist options
  • Save pikesley/9a8262a50204d6f78ebcc7a5d8ac69a0 to your computer and use it in GitHub Desktop.
Save pikesley/9a8262a50204d6f78ebcc7a5d8ac69a0 to your computer and use it in GitHub Desktop.
Neopixel Jewel
// 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