Removed legacy auto-white calculation.

Introduced color mangling macros.
Minor optimizations/fixes.
This commit is contained in:
Blaz Kristan
2021-10-26 19:17:42 +02:00
parent 090e29effd
commit 8ca298b299
9 changed files with 126 additions and 127 deletions

View File

@@ -21,10 +21,10 @@ void handleDMX()
for (int i = DMXStartLED; i < ledCount; i++) { // uses the amount of LEDs as fixture count
uint32_t in = strip.getPixelColor(i); // get the colors for the individual fixtures as suggested by Aircoookie in issue #462
byte w = in >> 24 & 0xFF;
byte r = in >> 16 & 0xFF;
byte g = in >> 8 & 0xFF;
byte b = in & 0xFF;
byte w = W(in);
byte r = R(in);
byte g = G(in);
byte b = B(in);
int DMXFixtureStart = DMXStart + (DMXGap * (i - DMXStartLED));
for (int j = 0; j < DMXChannels; j++) {