Skip to content

Instantly share code, notes, and snippets.

@michaelsarduino
Created March 16, 2016 11:36
Show Gist options
  • Save michaelsarduino/bc19a88938bd04ae405b to your computer and use it in GitHub Desktop.
Save michaelsarduino/bc19a88938bd04ae405b to your computer and use it in GitHub Desktop.
#define PIN 6
#define NUMPIXELS 8
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
// NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
// NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products)
// NEO_RGB Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2)
// NEO_RGBW Pixels are wired for RGBW bitstream (NeoPixel RGBW products)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment