Compare commits

..

2 Commits

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

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

Loading…
Cancel
Save