Exemplo n.º 1
0
void setup() 
{
	memset(rgb, 0, sizeof rgb);
	
	Serial.begin(9600);
	
	strip.begin();
	strip.show();
}
Exemplo n.º 2
0
void loop() 
{
	ret = CheckForColors();
	if (ret == 0) {
		//successfully read one strips worth of colors
		for (int x = 0; x < strip.numPixels(); x++) {
			strip.setPixelColor(x, strip.Color(rgb[x][0], rgb[x][1], rgb[x][2]));
			//strip.show();
		}
		strip.show();
	}
}