Compare commits

..

No commits in common. 'd40085065899bf90f7accc9df1b8ee880ae29a48' and 'e0249dcadf00e6620e3068830517d41d0b037c85' have entirely different histories.

@ -3,7 +3,7 @@
#define DEBUG #define DEBUG
#define LIGHTTEST //#define LIGHTTEST
// Total LED count // Total LED count
// set to 128*8 for 4 channel, 170*8 for 3 channel // set to 128*8 for 4 channel, 170*8 for 3 channel
@ -31,13 +31,13 @@
// Define the data pin connection to each strip // Define the data pin connection to each strip
// 0-7 for ARGB Controller PCB // 0-7 for ARGB Controller PCB
#define STRIP1 0 #define STRIP1 0
// #define STRIP2 1 #define STRIP2 1
// #define STRIP3 2 #define STRIP3 2
// #define STRIP4 3 #define STRIP4 3
// #define STRIP5 4 #define STRIP5 4
// #define STRIP6 5 #define STRIP6 5
// #define STRIP7 6 #define STRIP7 6
// #define STRIP8 7 #define STRIP8 7
// enable pin, if any // enable pin, if any
// 8 on ARGB controller // 8 on ARGB controller

@ -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));
} }
} }

Loading…
Cancel
Save