Created
March 10, 2016 05:30
-
-
Save talolard/bc4af5aece5c3ac3c2e6 to your computer and use it in GitHub Desktop.
Working RGB calibrate example
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
#include "FastLED.h" | |
#include <Adafruit_NeoPixel.h> | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(60, 8, NEO_BRG + NEO_KHZ800); | |
void setup() { | |
strip.begin(); | |
strip.show(); // Initialize all pixels to 'off' | |
} | |
void loop() { | |
strip.setPixelColor(0, 100,0,0); | |
strip.setPixelColor(1, 0,100,0); | |
strip.setPixelColor(2, 0,200,0); | |
strip.setPixelColor(3, 0,0,100); | |
strip.setPixelColor(4, 0,0,200); | |
strip.setPixelColor(5, 0,0,255); | |
strip.show(); | |
delay(100); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment