void setup() { memset(rgb, 0, sizeof rgb); Serial.begin(9600); strip.begin(); strip.show(); }
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(); } }