Skip to content

Commit

Permalink
Merge pull request #201 from troyhacks/mdev
Browse files Browse the repository at this point in the history
Cosmetic 2D Setup change: Start at Panel 1 instead of 0
  • Loading branch information
troyhacks authored Dec 4, 2024
2 parents f4ac04b + 3dbf78a commit 859e56a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wled00/data/settings_2D.htm
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
var pw = parseInt(d.Sf.PW.value);
var ph = parseInt(d.Sf.PH.value);
//WLEDMM: change name to id
let b = `<div id="pnl${i}"><hr class="sml">Panel ${i}<br>
let b = `<div id="pnl${i}"><hr class="sml">Panel ${i+1}<br>
1<sup>st</sup> LED: <select id="P${i}B" name="P${i}B" oninput="draw()">
<option value="0">Top</option>
<option value="1">Bottom</option>
Expand Down Expand Up @@ -334,7 +334,7 @@

ctx.font = '40px Arial';
ctx.fillStyle = "orange";
ctx.fillText(p, topLeftX + pw/2*ppL - 10, topLeftY + ph/2*ppL + 10);
ctx.fillText(p+1, topLeftX + pw/2*ppL - 10, topLeftY + ph/2*ppL + 10);
}
gId("MD").innerHTML = "Matrix Dimensions (W*H=LC): " + maxWidth + " x " + maxHeight + " = " + maxWidth * maxHeight;
}
Expand Down

0 comments on commit 859e56a

Please sign in to comment.