|
|
|
@ -41,9 +41,6 @@ Adafruit_NeoPixel *pixel8;
|
|
|
|
|
const int strips[LED_STRIPS] = {170, 170, 170, 170, 170, 170, 170, 170};
|
|
|
|
|
int offsets[(LED_STRIPS+1)];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Adafruit_NeoPixel *strip_list[8] = {pixel1,pixel2,pixel3,pixel4,pixel5,pixel6,pixel7,pixel8};
|
|
|
|
|
|
|
|
|
|
// #ifdef RGBW_MODE
|
|
|
|
|
// // EVIL! hack to support RGBW ICs
|
|
|
|
|
// CRGBW leds[MAX_LEDS];
|
|
|
|
@ -100,25 +97,25 @@ inline void setpixelrgb(int idx, byte r, byte g, byte b, byte w = 0) {
|
|
|
|
|
pixel1->setPixelColor(idx - offsets[0], pixel1->Color(r,g,b,w));
|
|
|
|
|
}
|
|
|
|
|
else if (idx < offsets[2]) {
|
|
|
|
|
pixel1->setPixelColor(idx - offsets[1], pixel1->Color(r,g,b,w));
|
|
|
|
|
pixel2->setPixelColor(idx - offsets[1], pixel2->Color(r,g,b,w));
|
|
|
|
|
}
|
|
|
|
|
else if (idx < offsets[3]) {
|
|
|
|
|
pixel1->setPixelColor(idx - offsets[2], pixel1->Color(r,g,b,w));
|
|
|
|
|
pixel3->setPixelColor(idx - offsets[2], pixel3->Color(r,g,b,w));
|
|
|
|
|
}
|
|
|
|
|
else if (idx < offsets[4]) {
|
|
|
|
|
pixel1->setPixelColor(idx - offsets[3], pixel1->Color(r,g,b,w));
|
|
|
|
|
pixel4->setPixelColor(idx - offsets[3], pixel4->Color(r,g,b,w));
|
|
|
|
|
}
|
|
|
|
|
else if (idx < offsets[5]) {
|
|
|
|
|
pixel1->setPixelColor(idx - offsets[4], pixel1->Color(r,g,b,w));
|
|
|
|
|
pixel5->setPixelColor(idx - offsets[4], pixel5->Color(r,g,b,w));
|
|
|
|
|
}
|
|
|
|
|
else if (idx < offsets[6]) {
|
|
|
|
|
pixel1->setPixelColor(idx - offsets[5], pixel1->Color(r,g,b,w));
|
|
|
|
|
pixel6->setPixelColor(idx - offsets[5], pixel6->Color(r,g,b,w));
|
|
|
|
|
}
|
|
|
|
|
else if (idx < offsets[7]) {
|
|
|
|
|
pixel1->setPixelColor(idx - offsets[6], pixel1->Color(r,g,b,w));
|
|
|
|
|
pixel7->setPixelColor(idx - offsets[6], pixel7->Color(r,g,b,w));
|
|
|
|
|
}
|
|
|
|
|
else if (idx < offsets[8]) {
|
|
|
|
|
pixel1->setPixelColor(idx - offsets[7], pixel1->Color(r,g,b,w));
|
|
|
|
|
pixel8->setPixelColor(idx - offsets[7], pixel8->Color(r,g,b,w));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|