mirror of
https://github.com/wled/WLED.git
synced 2025-07-23 10:46:33 +00:00
Brighter peek (ignore strip brightness)
This commit is contained in:
parent
b3206121cc
commit
88372cd516
@ -206,9 +206,12 @@ bool sendLiveLedsWs(uint32_t wsClient)
|
|||||||
uint8_t g = G(c);
|
uint8_t g = G(c);
|
||||||
uint8_t b = B(c);
|
uint8_t b = B(c);
|
||||||
uint8_t w = W(c);
|
uint8_t w = W(c);
|
||||||
buffer[pos++] = scale8(qadd8(w, r), strip.getBrightness()); //R, add white channel to RGB channels as a simple RGBW -> RGB map
|
//buffer[pos++] = scale8(qadd8(w, r), strip.getBrightness()); //R, add white channel to RGB channels as a simple RGBW -> RGB map
|
||||||
buffer[pos++] = scale8(qadd8(w, g), strip.getBrightness()); //G
|
//buffer[pos++] = scale8(qadd8(w, g), strip.getBrightness()); //G
|
||||||
buffer[pos++] = scale8(qadd8(w, b), strip.getBrightness()); //B
|
//buffer[pos++] = scale8(qadd8(w, b), strip.getBrightness()); //B
|
||||||
|
buffer[pos++] = qadd8(w, r); //R, add white channel to RGB channels as a simple RGBW -> RGB map
|
||||||
|
buffer[pos++] = qadd8(w, g); //G
|
||||||
|
buffer[pos++] = qadd8(w, b); //B
|
||||||
}
|
}
|
||||||
|
|
||||||
wsc->binary(std::move(wsBuf));
|
wsc->binary(std::move(wsBuf));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user