Added white channel to Peek (closes #1716)
This commit is contained in:
parent
fb19f1ecbc
commit
2c5eba335f
@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
### Builds after release 0.12.0
|
### Builds after release 0.12.0
|
||||||
|
|
||||||
|
#### Build 2201260
|
||||||
|
|
||||||
|
- Initial ESP32-C3 and ESP32-S2 support (PRs #2452, )
|
||||||
|
- Full segment sync (PR #2427)
|
||||||
|
- Allow overriding of color order by ranges (PR #2463)
|
||||||
|
- Added white channel to Peek
|
||||||
|
|
||||||
#### Build 2112080
|
#### Build 2112080
|
||||||
|
|
||||||
- Version bump to 0.13.0-b6 "Toki"
|
- Version bump to 0.13.0-b6 "Toki"
|
||||||
|
@ -909,7 +909,11 @@ bool serveLiveLeds(AsyncWebServerRequest* request, uint32_t wsClient)
|
|||||||
|
|
||||||
for (uint16_t i= 0; i < used; i += n)
|
for (uint16_t i= 0; i < used; i += n)
|
||||||
{
|
{
|
||||||
olen += sprintf(obuf + olen, "\"%06X\",", strip.getPixelColor(i) & 0xFFFFFF);
|
uint32_t c = strip.getPixelColor(i);
|
||||||
|
uint8_t r = qadd8(W(c), R(c)); //add white channel to RGB channels as a simple RGBW -> RGB map
|
||||||
|
uint8_t g = qadd8(W(c), G(c));
|
||||||
|
uint8_t b = qadd8(W(c), B(c));
|
||||||
|
olen += sprintf(obuf + olen, "\"%06X\",", RGBW32(r,g,b,0));
|
||||||
}
|
}
|
||||||
olen -= 1;
|
olen -= 1;
|
||||||
oappend((const char*)F("],\"n\":"));
|
oappend((const char*)F("],\"n\":"));
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// version code in format yymmddb (b = daily build)
|
// version code in format yymmddb (b = daily build)
|
||||||
#define VERSION 2112080
|
#define VERSION 2201260
|
||||||
|
|
||||||
//uncomment this if you have a "my_config.h" file you'd like to use
|
//uncomment this if you have a "my_config.h" file you'd like to use
|
||||||
//#define WLED_USE_MY_CONFIG
|
//#define WLED_USE_MY_CONFIG
|
||||||
|
Loading…
Reference in New Issue
Block a user