Update McLighting.ino

This commit is contained in:
Debashish Sahu 2019-01-24 14:00:27 -05:00
parent 9efcb4530b
commit a1851e0cb8

View file

@ -749,18 +749,25 @@ void setup() {
DBG_OUTPUT_PORT.print("/pixels: RGB Order# "); DBG_OUTPUT_PORT.print("/pixels: RGB Order# ");
if (RGBOrder == "grb") { if (RGBOrder == "grb") {
initStrip(strip->getLength(), NEO_GRB); initStrip(strip->getLength(), NEO_GRB);
DBG_OUTPUT_PORT.println(RGBOrder);
} else if (RGBOrder == "gbr") { } else if (RGBOrder == "gbr") {
initStrip(strip->getLength(), NEO_GBR); initStrip(strip->getLength(), NEO_GBR);
DBG_OUTPUT_PORT.println(RGBOrder);
} else if (RGBOrder == "rgb") { } else if (RGBOrder == "rgb") {
initStrip(strip->getLength(), NEO_RGB); initStrip(strip->getLength(), NEO_RGB);
DBG_OUTPUT_PORT.println(RGBOrder);
} else if (RGBOrder == "rbg") { } else if (RGBOrder == "rbg") {
initStrip(strip->getLength(), NEO_RBG); initStrip(strip->getLength(), NEO_RBG);
DBG_OUTPUT_PORT.println(RGBOrder);
} else if (RGBOrder == "brg") { } else if (RGBOrder == "brg") {
initStrip(strip->getLength(), NEO_BRG); initStrip(strip->getLength(), NEO_BRG);
DBG_OUTPUT_PORT.println(RGBOrder);
} else if (RGBOrder == "bgr") { } else if (RGBOrder == "bgr") {
initStrip(strip->getLength(), NEO_BGR); initStrip(strip->getLength(), NEO_BGR);
}
DBG_OUTPUT_PORT.println(RGBOrder); DBG_OUTPUT_PORT.println(RGBOrder);
} else {
DBG_OUTPUT_PORT.println("invalid input!");
}
} }
}); });