Improve liveview2D: add width and height > 256 leds
This commit is contained in:
parent
863212915c
commit
affcca8034
@ -234,11 +234,11 @@ button {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#liveview2D {
|
#liveview2D {
|
||||||
height: 320px;
|
height: 90%;
|
||||||
display: none;
|
display: none;
|
||||||
width: 100%;
|
width: 90%;
|
||||||
border: 0px;
|
border: 0px;
|
||||||
margin: auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab {
|
.tab {
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
<button id="buttonPower" onclick="togglePower()" class="tgl"><i class="icons"></i><p class="tab-label">Power</p></button>
|
<button id="buttonPower" onclick="togglePower()" class="tgl"><i class="icons"></i><p class="tab-label">Power</p></button>
|
||||||
<button id="buttonNl" onclick="toggleNl()"><i class="icons"></i><p class="tab-label">Timer</p></button>
|
<button id="buttonNl" onclick="toggleNl()"><i class="icons"></i><p class="tab-label">Timer</p></button>
|
||||||
<button id="buttonSync" onclick="toggleSync()"><i class="icons"></i><p class="tab-label">Sync</p></button>
|
<button id="buttonSync" onclick="toggleSync()"><i class="icons"></i><p class="tab-label">Sync</p></button>
|
||||||
<button id="buttonSr" onclick="toggleLiveview()"><i class="icons"></i><p class="tab-label">Peek</p></button>
|
<button id="buttonSr" onclick="toggleLiveview2D()" ondblclick="toggleLiveview()"><i class="icons"></i><p class="tab-label">Peek</p></button>
|
||||||
<button id="buttonI" onclick="toggleInfo()"><i class="icons"></i><p class="tab-label">Info</p></button>
|
<button id="buttonI" onclick="toggleInfo()"><i class="icons"></i><p class="tab-label">Info</p></button>
|
||||||
<button id="buttonNodes" onclick="toggleNodes()"><i class="icons"></i><p class="tab-label">Nodes</p></button>
|
<button id="buttonNodes" onclick="toggleNodes()"><i class="icons"></i><p class="tab-label">Nodes</p></button>
|
||||||
<button onclick="window.location.href='/settings';"><i class="icons"></i><p class="tab-label">Config</p></button>
|
<button onclick="window.location.href='/settings';"><i class="icons"></i><p class="tab-label">Config</p></button>
|
||||||
@ -330,7 +330,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="mliveview2D" class="modal">
|
<div id="mliveview2D" class="modal">
|
||||||
<div id="kliveview2D">Loading...</div><br>
|
<div id="kliveview2D" style="width:100%; height:100%">Loading...</div><br>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="rover" class="modal">
|
<div id="rover" class="modal">
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//page js
|
//page js
|
||||||
var loc = false, locip;
|
var loc = false, locip;
|
||||||
var noNewSegs = false;
|
var noNewSegs = false;
|
||||||
var isOn = false, nlA = false, isLv = false, isInfo = false, isNodes = false, syncSend = false, syncTglRecv = true;
|
var isOn = false, nlA = false, isLv = false, isLv2D = false, isInfo = false, isNodes = false, syncSend = false, syncTglRecv = true;
|
||||||
var hasWhite = false, hasRGB = false, hasCCT = false;
|
var hasWhite = false, hasRGB = false, hasCCT = false;
|
||||||
var nlDur = 60, nlTar = 0;
|
var nlDur = 60, nlTar = 0;
|
||||||
var nlMode = false;
|
var nlMode = false;
|
||||||
@ -1526,39 +1526,44 @@ function toggleSync()
|
|||||||
|
|
||||||
function toggleLiveview()
|
function toggleLiveview()
|
||||||
{
|
{
|
||||||
if (isInfo) toggleInfo();
|
if (isLv2D) {toggleLiveview2D(); return;}
|
||||||
if (isNodes) toggleNodes();
|
|
||||||
|
|
||||||
isLv = !isLv;
|
isLv = !isLv;
|
||||||
|
gId('liveview').style.display = (isLv) ? "block":"none";
|
||||||
|
var url = (loc?`http://${locip}`:'') + "/liveview";
|
||||||
|
gId('liveview').src = (isLv) ? url:"about:blank";
|
||||||
|
gId('buttonSr').className = (isLv) ? "active":"";
|
||||||
|
if (!isLv && ws && ws.readyState === WebSocket.OPEN) ws.send('{"lv":false}');
|
||||||
|
size();
|
||||||
|
}
|
||||||
|
|
||||||
var lvID = "liveview";
|
function toggleLiveview2D()
|
||||||
if (isM) {
|
{
|
||||||
lvID = "liveview2D"
|
if (isInfo) toggleInfo();
|
||||||
if (isLv) {
|
if (isNodes) toggleNodes();
|
||||||
|
if (isLv) toggleLiveview();
|
||||||
|
|
||||||
|
isLv2D = !isLv2D;
|
||||||
|
|
||||||
|
if (isLv2D) {
|
||||||
var cn = '<iframe id="liveview2D" src="about:blank"></iframe>';
|
var cn = '<iframe id="liveview2D" src="about:blank"></iframe>';
|
||||||
d.getElementById('kliveview2D').innerHTML = cn;
|
d.getElementById('kliveview2D').innerHTML = cn;
|
||||||
}
|
}
|
||||||
|
|
||||||
gId('mliveview2D').style.transform = (isLv) ? "translateY(0px)":"translateY(100%)";
|
gId('mliveview2D').style.transform = (isLv2D) ? "translateY(0px)":"translateY(100%)";
|
||||||
gId('buttonSr').lastChild.innerHTML = "Peek2D"; //lastchild is <p>Peek</p>
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
gId('buttonSr').lastChild.innerHTML = "Peek"; //lastchild is <p>Peek</p>
|
|
||||||
}
|
|
||||||
|
|
||||||
gId(lvID).style.display = (isLv) ? "block":"none";
|
gId("liveview2D").style.display = (isLv2D) ? "block":"none";
|
||||||
var url = (loc?`http://${locip}`:'') + "/" + lvID;
|
var url = (loc?`http://${locip}`:'') + "/liveview2D";
|
||||||
gId(lvID).src = (isLv) ? url:"about:blank";
|
gId("liveview2D").src = (isLv2D) ? url:"about:blank";
|
||||||
gId('buttonSr').className = (isLv) ? "active":"";
|
gId('buttonSr').className = (isLv2D) ? "active":"";
|
||||||
if (!isLv && ws && ws.readyState === WebSocket.OPEN) ws.send('{"lv":false}');
|
if (!isLv2D && ws && ws.readyState === WebSocket.OPEN) ws.send('{"lv":false}');
|
||||||
size();
|
size();
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleInfo()
|
function toggleInfo()
|
||||||
{
|
{
|
||||||
if (isNodes) toggleNodes();
|
if (isNodes) toggleNodes();
|
||||||
if (isLv) toggleLiveview();
|
if (isLv2D) toggleLiveview2D();
|
||||||
isInfo = !isInfo;
|
isInfo = !isInfo;
|
||||||
if (isInfo) requestJson();
|
if (isInfo) requestJson();
|
||||||
gId('info').style.transform = (isInfo) ? "translateY(0px)":"translateY(100%)";
|
gId('info').style.transform = (isInfo) ? "translateY(0px)":"translateY(100%)";
|
||||||
@ -1568,7 +1573,7 @@ function toggleInfo()
|
|||||||
function toggleNodes()
|
function toggleNodes()
|
||||||
{
|
{
|
||||||
if (isInfo) toggleInfo();
|
if (isInfo) toggleInfo();
|
||||||
if (isLv) toggleLiveview();
|
if (isLv2D) toggleLiveview2D();
|
||||||
isNodes = !isNodes;
|
isNodes = !isNodes;
|
||||||
if (isNodes) loadNodes();
|
if (isNodes) loadNodes();
|
||||||
gId('nodes').style.transform = (isNodes) ? "translateY(0px)":"translateY(100%)";
|
gId('nodes').style.transform = (isNodes) ? "translateY(0px)":"translateY(100%)";
|
||||||
|
@ -9,23 +9,16 @@
|
|||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
#canv1, #canv2 {
|
|
||||||
background: black;
|
|
||||||
filter: brightness(175%);
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div style="margin:auto">
|
<canvas id="liveviewCanvas">
|
||||||
<canvas id="liveviewCanvas" width="320", height="320" style="border:1px solid #000">
|
|
||||||
LiveView
|
LiveView
|
||||||
</canvas>
|
</canvas>
|
||||||
</div>
|
|
||||||
<script>
|
<script>
|
||||||
var canvas = document.getElementById('liveviewCanvas');
|
var canvas = document.getElementById('liveviewCanvas');
|
||||||
|
canvas.width = window.innerWidth * 0.98; //remove scroll bars
|
||||||
|
canvas.height = window.innerHeight * 0.98; //remove scroll bars
|
||||||
var leds = "";
|
var leds = "";
|
||||||
var matrixWidth = 0;
|
var matrixWidth = 0;
|
||||||
var pixelsPerLed = 0;
|
var pixelsPerLed = 0;
|
||||||
@ -59,7 +52,7 @@
|
|||||||
function drawLedCircles(x, y, r, g, b, a) {
|
function drawLedCircles(x, y, r, g, b, a) {
|
||||||
ctx.fillStyle = `rgb(${r},${g},${b})`;
|
ctx.fillStyle = `rgb(${r},${g},${b})`;
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
ctx.arc(x*pixelsPerLed+pixelsPerLed/2, y*pixelsPerLed+pixelsPerLed/2, pixelsPerLed/2, 0, 2 * Math.PI);
|
ctx.arc(x*pixelsPerLed+pixelsPerLed*0.5, y*pixelsPerLed+pixelsPerLed*0.5, pixelsPerLed*0.4, 0, 2 * Math.PI);
|
||||||
ctx.fill();
|
ctx.fill();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -67,8 +60,8 @@
|
|||||||
// data represents the Uint8ClampedArray containing the data
|
// data represents the Uint8ClampedArray containing the data
|
||||||
// in the RGBA order [r0, g0, b0, a0, r1, g1, b1, a1, ..., rn, gn, bn, an]
|
// in the RGBA order [r0, g0, b0, a0, r1, g1, b1, a1, ..., rn, gn, bn, an]
|
||||||
|
|
||||||
for (i = 2; i < leds.length; i+=3) {
|
for (i = 4; i < leds.length; i+=3) {
|
||||||
let ff = (i-2)/3;
|
let ff = (i-4)/3;
|
||||||
drawLedCircles(ff%matrixWidth, Math.floor(ff/matrixWidth), leds[i], leds[i+1], leds[i+2], 255)
|
drawLedCircles(ff%matrixWidth, Math.floor(ff/matrixWidth), leds[i], leds[i+1], leds[i+2], 255)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,9 +71,10 @@
|
|||||||
|
|
||||||
function updatePreview(ledsp) {
|
function updatePreview(ledsp) {
|
||||||
leds = ledsp;
|
leds = ledsp;
|
||||||
matrixWidth = Math.sqrt((leds.length - 2)/3);
|
matrixWidth = leds[2];
|
||||||
pixelsPerLed = canvas.width / matrixWidth;
|
matrixHeight = leds[3];
|
||||||
// console.log(Math.sqrt((leds.length - 2)/3), pixelsPerLed, leds);
|
pixelsPerLed = Math.min(canvas.width / matrixWidth, canvas.height / matrixHeight);
|
||||||
|
// console.log(canvas.width, matrixWidth, canvas.height, matrixHeight, pixelsPerLed, leds);
|
||||||
paintLeds();
|
paintLeds();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -88,7 +82,7 @@
|
|||||||
try {
|
try {
|
||||||
if (toString.call(e.data) === '[object ArrayBuffer]') {
|
if (toString.call(e.data) === '[object ArrayBuffer]') {
|
||||||
let leds = new Uint8Array(event.data);
|
let leds = new Uint8Array(event.data);
|
||||||
if (leds[0] != 76) return; //'L'
|
if (leds[0] != 76) return; //'L', set in ws.cpp
|
||||||
updatePreview(leds);
|
updatePreview(leds);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -282,68 +282,64 @@ const uint8_t PAGE_liveviewws[] PROGMEM = {
|
|||||||
|
|
||||||
|
|
||||||
// Autogenerated from wled00/data/liveviewws2D.htm, do not edit!!
|
// Autogenerated from wled00/data/liveviewws2D.htm, do not edit!!
|
||||||
const uint16_t PAGE_liveviewws2D_length = 960;
|
const uint16_t PAGE_liveviewws2D_length = 896;
|
||||||
const uint8_t PAGE_liveviewws2D[] PROGMEM = {
|
const uint8_t PAGE_liveviewws2D[] PROGMEM = {
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x13, 0x7d, 0x55, 0x61, 0x6f, 0xdb, 0x36,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x13, 0x7d, 0x55, 0x6d, 0x6f, 0xdb, 0x36,
|
||||||
0x10, 0xfd, 0xee, 0x5f, 0xa1, 0x32, 0x4d, 0x4b, 0xd5, 0x8a, 0x24, 0x3b, 0xc8, 0x5a, 0xc8, 0x92,
|
0x10, 0xfe, 0xee, 0x5f, 0xa1, 0x72, 0x5d, 0x4b, 0xc6, 0x8a, 0xe4, 0x3a, 0xc9, 0x96, 0xd9, 0x92,
|
||||||
0x8b, 0x35, 0xf5, 0x87,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d, 0xe2, 0x14, 0xb6, 0x22, 0x81, 0xf3, 0x76, 0xe1, 0x0b, 0x29, 0xac,
|
||||||
0xce, 0xca, 0x33, 0x9d, 0xb1, 0x12, 0x92, 0x89, 0x57, 0xe1, 0x8b, 0xaa, 0xa9, 0x1e, 0xd7, 0x64,
|
0xe0, 0xf9, 0xb9, 0x49, 0x78, 0x0e, 0xf1, 0x3b, 0xbf, 0xc0, 0x8d, 0x62, 0x53, 0x3c, 0xae, 0xc9,
|
||||||
0x8f, 0x39, 0xca, 0x0a, 0xa6, 0x34, 0x20, 0x46, 0x63, 0x56, 0x67, 0x1f, 0xc8, 0x33, 0x2a, 0x53,
|
0x1e, 0xb3, 0x97, 0x64, 0x5c, 0x1b, 0x40, 0x8c, 0x8d, 0x5d, 0x9d, 0x5f, 0x93, 0x93, 0x50, 0x36,
|
||||||
0x40, 0x05, 0x67, 0x99, 0x2c, 0xa5, 0x22, 0xce, 0x81, 0xec, 0x64, 0xda, 0xff, 0x30, 0xd5, 0x70,
|
0x83, 0x02, 0xce, 0x13, 0x95, 0x2b, 0x4d, 0xbc, 0x43, 0xb0, 0xef, 0x86, 0xed, 0x0f, 0x5d, 0xad,
|
||||||
0x53, 0xc2, 0x7c, 0x74, 0x73, 0xb5, 0xf8, 0xec, 0x5c, 0xf1, 0x0d, 0x38, 0x4b, 0x05, 0x56, 0x5e,
|
0xb0, 0x39, 0x4c, 0x7a, 0x77, 0xb7, 0xd3, 0x8f, 0xde, 0xad, 0xd8, 0x82, 0x37, 0xd3, 0xe0, 0xe8,
|
||||||
0x1c, 0x0c, 0x91, 0x58, 0x9b, 0xad, 0x4d, 0x48, 0x65, 0xbe, 0xdd, 0x55, 0x4c, 0xad, 0xb9, 0x88,
|
0x45, 0x61, 0x67, 0x89, 0x8c, 0xdd, 0xe1, 0x6b, 0xa9, 0xd2, 0x5d, 0x5d, 0x70, 0xbd, 0x16, 0x72,
|
||||||
0xc2, 0xee, 0x24, 0x63, 0x62, 0x33, 0xf1,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x1d, 0xed, 0x1e, 0xd7, 0x0e, 0xd9, 0x61, 0x92, 0xc5,
|
|
||||||
0xc1, 0x30, 0x5f, 0x83, 0xfe, 0xef, 0xea, 0x1f, 0xaa, 0x8c, 0x74, 0x8d, 0xc4, 0x06, 0x00, 0x00
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
3612
wled00/html_ui.h
3612
wled00/html_ui.h
File diff suppressed because it is too large
Load Diff
@ -138,7 +138,7 @@ void sendDataWs(AsyncWebSocketClient * client)
|
|||||||
releaseJSONBufferLock();
|
releaseJSONBufferLock();
|
||||||
}
|
}
|
||||||
|
|
||||||
#define MAX_LIVE_LEDS_WS 256
|
#define MAX_LIVE_LEDS_WS 1024
|
||||||
|
|
||||||
bool sendLiveLedsWs(uint32_t wsClient)
|
bool sendLiveLedsWs(uint32_t wsClient)
|
||||||
{
|
{
|
||||||
@ -153,8 +153,10 @@ bool sendLiveLedsWs(uint32_t wsClient)
|
|||||||
uint8_t* buffer = wsBuf->get();
|
uint8_t* buffer = wsBuf->get();
|
||||||
buffer[0] = 'L';
|
buffer[0] = 'L';
|
||||||
buffer[1] = 1; //version
|
buffer[1] = 1; //version
|
||||||
|
buffer[2] = strip.matrixWidth;
|
||||||
|
buffer[3] = strip.matrixHeight;
|
||||||
|
|
||||||
uint16_t pos = 2;
|
uint16_t pos = 4;
|
||||||
for (uint16_t i= 0; pos < bufSize -2; i += n)
|
for (uint16_t i= 0; pos < bufSize -2; i += n)
|
||||||
{
|
{
|
||||||
uint32_t c = strip.getPixelColor(i);
|
uint32_t c = strip.getPixelColor(i);
|
||||||
|
Loading…
Reference in New Issue
Block a user