Skip to content

Instantly share code, notes, and snippets.

@talolard
Created March 10, 2016 05:30
Show Gist options
  • Save talolard/bc4af5aece5c3ac3c2e6 to your computer and use it in GitHub Desktop.
Save talolard/bc4af5aece5c3ac3c2e6 to your computer and use it in GitHub Desktop.
Working RGB calibrate example
#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