show only ledmap pixels, show bus lengths in segment visualization

index.js: segment visualization:
- max width if no pc
- don't show nr if only one segment
- Ledmap nr color depending on bus output

FX_2Dfcn.cpp / FX_fcn.cpp
- don't show ledmap -1 pixels

json.cpp: add busses.length to outputs

ws.cpp: peek back to strip.gPC only
This commit is contained in:
Ewoud
2023-02-14 17:22:58 +01:00
parent 476105a267
commit d8f625beea
6 changed files with 2178 additions and 2161 deletions

View File

@@ -170,12 +170,7 @@ bool sendLiveLedsWs(uint32_t wsClient)
for (uint16_t i = 0; pos < bufSize -2; i += n)
{
//WLEDMM: include ledmap in peek if default panel
uint32_t c;
if (strip.panel.size()==1 && !strip.panel[0].vertical && !strip.panel[0].bottomStart && !strip.panel[0].rightStart && !strip.panel[0].serpentine) // one default panel
c = busses.getPixelColor(i);
else
c = strip.getPixelColor(i);
uint32_t c = strip.getPixelColor(i);
buffer[pos++] = qadd8(W(c), R(c)); //R, add white channel to RGB channels as a simple RGBW -> RGB map
buffer[pos++] = qadd8(W(c), G(c)); //G
buffer[pos++] = qadd8(W(c), B(c)); //B