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