Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
For "Eyes that Follow" Instructable. Lights up 10 NeoPixels the color red with an Adafruit Gemma.
#include <Adafruit_NeoPixel.h>
#define NUM_LEDS 10
#define PIN 0
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
setAll(strip.Color(255, 0, 0));;
void loop() {
void setAll(uint32_t theColor) {
for(uint16_t i = 0; i < strip.numPixels(); i++) {
strip.setPixelColor(i, theColor);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment