Created
April 25, 2014 17:56
-
-
Save mdobson/11297971 to your computer and use it in GitHub Desktop.
Through hole neopixel
This file contains hidden or 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
#include <Adafruit_NeoPixel.h> | |
#define PIN 6 | |
Adafruit_NeoPixel led = Adafruit_NeoPixel(1, PIN, NEO_RGB + NEO_KHZ400); | |
void setup(){ | |
led.begin(); | |
led.show(); | |
} | |
void loop(){ | |
led.setPixelColor(0, 0, 255, 255); | |
led.show(); | |
delay(3000); | |
led.setPixelColor(0, 255, 0, 255); | |
led.show(); | |
delay(3000); | |
led.setPixelColor(0, 255, 255, 0); | |
led.show(); | |
delay(3000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment