Skip to content

Commit

Permalink
UI improvement (target FPS settings)
Browse files Browse the repository at this point in the history
  • Loading branch information
softhack007 committed Nov 4, 2024
1 parent ebeff65 commit 0d6e2c9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wled00/data/settings_leds.htm
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
gId('ampwarning').style.display = (d.Sf.MA.value > 7200) ? 'inline':'none';

gId('fpsNone').style.display = ((d.Sf.FR.value == 0) || (d.Sf.FR.value > 249))? 'block':'none'; // WLEDMM
gId('fpsNoHelp').style.display = ((d.Sf.FR.value == 0) || (d.Sf.FR.value > 249))? 'none':'block'; // WLEDMM
gId('fpswarning').style.display = (d.Sf.FR.value > 69) || (d.Sf.FR.value == 0) ? 'block':'none'; // WLEDMM
gId('fpshelp1').style.display = ((d.Sf.FR.value > 80) && (d.Sf.FR.value < 132)) ? 'block':'none'; // WLEDMM
gId('fpshelp2').style.display = ((d.Sf.FR.value > 132) && (d.Sf.FR.value < 196)) ? 'block':'none'; // WLEDMM
Expand Down Expand Up @@ -732,9 +733,10 @@ <h3>Advanced</h3>
<option value="1">Linear (always wrap)</option>
<option value="2">Linear (never wrap)</option>
<option value="3">None (not recommended)</option>
</select><br>
</select><br><br>
Target refresh rate: <input type="number" class="s" min="0" max="250" name="FR" oninput="UI()" required> FPS
<div id="fpsNone" style="color:green; display: none;"><b>unlimited FPS mode.</b><br></div>
<div id="fpsNoHelp" style="display: block;"><i>use 0 for unlimited</i><br></div>
<div id="fpsNone" style="color:green; display: none;"><b>Unlimited refresh rate mode.</b><br></div>
<div id="fpswarning" style="color:GoldenRod; display: none;">
&#9888; WLED may become unstable above 70 fps.<br>
To protect your setup,
Expand Down

0 comments on commit 0d6e2c9

Please sign in to comment.