Auto start field population in bus config
This commit is contained in:
parent
71edc3a084
commit
9b3e6270d5
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
### Development versions after 0.11.1 release
|
### Development versions after 0.11.1 release
|
||||||
|
|
||||||
|
#### Build 2103060
|
||||||
|
|
||||||
|
- Auto start field population in bus config
|
||||||
|
|
||||||
#### Build 2103050
|
#### Build 2103050
|
||||||
|
|
||||||
- Fixed incorrect over-memory indication in LED settings on ESP32
|
- Fixed incorrect over-memory indication in LED settings on ESP32
|
||||||
|
@ -188,7 +188,7 @@
|
|||||||
// maximum number of LEDs - more than 1500 LEDs (or 500 DMA "LEDPIN 3" driven ones) will cause a low memory condition on ESP8266
|
// maximum number of LEDs - more than 1500 LEDs (or 500 DMA "LEDPIN 3" driven ones) will cause a low memory condition on ESP8266
|
||||||
#ifndef MAX_LEDS
|
#ifndef MAX_LEDS
|
||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
#define MAX_LEDS 2048
|
#define MAX_LEDS 8192 //rely on memory limit to limit this to 1600 LEDs
|
||||||
#else
|
#else
|
||||||
#define MAX_LEDS 8192
|
#define MAX_LEDS 8192
|
||||||
#endif
|
#endif
|
||||||
@ -202,6 +202,10 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef MAX_LEDS_PER_BUS
|
||||||
|
#define MAX_LEDS_PER_BUS 4096
|
||||||
|
#endif
|
||||||
|
|
||||||
// string temp buffer (now stored in stack locally)
|
// string temp buffer (now stored in stack locally)
|
||||||
#define OMAX 2048
|
#define OMAX 2048
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<meta name="viewport" content="width=500">
|
<meta name="viewport" content="width=500">
|
||||||
<title>LED Settings</title>
|
<title>LED Settings</title>
|
||||||
<script>
|
<script>
|
||||||
var d=document,laprev=55,maxB=1,maxM=5000,bquot=0; //maximum bytes for LED allocation: 5kB for 8266, 32kB for 32
|
var d=document,laprev=55,maxB=1,maxM=5000,maxPB=4096,bquot=0; //maximum bytes for LED allocation: 5kB for 8266, 32kB for 32
|
||||||
function H()
|
function H()
|
||||||
{
|
{
|
||||||
window.open("https://github.com/Aircoookie/WLED/wiki/Settings#led-settings");
|
window.open("https://github.com/Aircoookie/WLED/wiki/Settings#led-settings");
|
||||||
@ -14,8 +14,8 @@
|
|||||||
{
|
{
|
||||||
window.open("/settings","_self");
|
window.open("/settings","_self");
|
||||||
}
|
}
|
||||||
function bLimits(b,m) {
|
function bLimits(b,p,m) {
|
||||||
maxB = b; maxM = m;
|
maxB = b; maxM = m; maxPB = p;
|
||||||
}
|
}
|
||||||
function trySubmit() {
|
function trySubmit() {
|
||||||
var LCs = d.getElementsByTagName("input");
|
var LCs = d.getElementsByTagName("input");
|
||||||
@ -178,6 +178,12 @@
|
|||||||
d.getElementById('psu').innerHTML = s;
|
d.getElementById('psu').innerHTML = s;
|
||||||
d.getElementById('psu2').innerHTML = isWS2815 ? "" : s2;
|
d.getElementById('psu2').innerHTML = isWS2815 ? "" : s2;
|
||||||
}
|
}
|
||||||
|
function lastEnd(i) {
|
||||||
|
if (i<1) return 0;
|
||||||
|
v = parseInt(d.getElementsByName("LS"+(i-1))[0].value) + parseInt(d.getElementsByName("LC"+(i-1))[0].value);
|
||||||
|
if (isNaN(v)) return 0;
|
||||||
|
return v;
|
||||||
|
}
|
||||||
function addLEDs(n)
|
function addLEDs(n)
|
||||||
{
|
{
|
||||||
if (n>1) {maxB=n; d.getElementById("+").style.display="inline"; return;}
|
if (n>1) {maxB=n; d.getElementById("+").style.display="inline"; return;}
|
||||||
@ -222,9 +228,9 @@
|
|||||||
<span id="p3d${i}"></span><input type="number" name="L3${i}" min="0" max="40" style="width:35px"/>
|
<span id="p3d${i}"></span><input type="number" name="L3${i}" min="0" max="40" style="width:35px"/>
|
||||||
<span id="p4d${i}"></span><input type="number" name="L4${i}" min="0" max="40" style="width:35px"/>
|
<span id="p4d${i}"></span><input type="number" name="L4${i}" min="0" max="40" style="width:35px"/>
|
||||||
<br>
|
<br>
|
||||||
<span id="psd${i}">Start:</span> <input type="number" name="LS${i}" min="0" max="8191" value="0" required />
|
<span id="psd${i}">Start:</span> <input type="number" name="LS${i}" min="0" max="8191" value="${lastEnd(i)}" required />
|
||||||
<div id="dig${i}" style="display:inline">
|
<div id="dig${i}" style="display:inline">
|
||||||
Count: <input type="number" name="LC${i}" min="0" max="2048" value="1" required oninput="UI()" /><br>
|
Count: <input type="number" name="LC${i}" min="0" max="${maxPB}" value="1" required oninput="UI()" /><br>
|
||||||
Reverse: <input type="checkbox" name="CV${i}"></div><br>
|
Reverse: <input type="checkbox" name="CV${i}"></div><br>
|
||||||
</div>`;
|
</div>`;
|
||||||
f.insertAdjacentHTML("beforeend", cn);
|
f.insertAdjacentHTML("beforeend", cn);
|
||||||
|
File diff suppressed because one or more lines are too long
@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// version code in format yymmddb (b = daily build)
|
// version code in format yymmddb (b = daily build)
|
||||||
#define VERSION 2103050
|
#define VERSION 2103060
|
||||||
|
|
||||||
//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
|
||||||
|
@ -272,13 +272,13 @@ void getSettingsJS(byte subPage, char* dest)
|
|||||||
oappend(SET_F("];"));
|
oappend(SET_F("];"));
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
#if defined(WLED_MAX_BUSSES) && WLED_MAX_BUSSES>1
|
oappend(SET_F("bLimits("));
|
||||||
oappend(SET_F("bLimits("));
|
oappend(itoa(WLED_MAX_BUSSES,nS,10));
|
||||||
oappend(itoa(WLED_MAX_BUSSES,nS,10));
|
oappend(",");
|
||||||
oappend(",");
|
oappend(itoa(MAX_LEDS_PER_BUS,nS,10));
|
||||||
oappend(itoa(MAX_LED_MEMORY,nS,10));
|
oappend(",");
|
||||||
oappend(SET_F(");"));
|
oappend(itoa(MAX_LED_MEMORY,nS,10));
|
||||||
#endif
|
oappend(SET_F(");"));
|
||||||
|
|
||||||
oappend(SET_F("d.Sf.LC.max=")); //TODO Formula for max LEDs on ESP8266 depending on types. 500 DMA or 1500 UART (about 4kB mem usage)
|
oappend(SET_F("d.Sf.LC.max=")); //TODO Formula for max LEDs on ESP8266 depending on types. 500 DMA or 1500 UART (about 4kB mem usage)
|
||||||
oappendi(MAX_LEDS);
|
oappendi(MAX_LEDS);
|
||||||
|
Loading…
Reference in New Issue
Block a user