Add animated staircase to _max environments, add ? btn to Bat,temp,Asave

This commit is contained in:
Ewoud
2023-01-05 17:40:13 +01:00
parent 008e7b96f4
commit da590bac7e
4 changed files with 11 additions and 1 deletions

View File

@@ -378,6 +378,7 @@ class UsermodBattery : public Usermod
void appendConfigData()
{
oappend(SET_F("addInfo('Battery:help',0,'<button onclick=\"location.href=&quot;https://mm.kno.wled.ge/usermods/Battery&quot;\" type=\"button\">?</button>');"));
oappend(SET_F("addInfo('Battery:min-voltage', 1, 'v');"));
oappend(SET_F("addInfo('Battery:max-voltage', 1, 'v');"));
oappend(SET_F("addInfo('Battery:capacity', 1, 'mAh');"));

View File

@@ -305,6 +305,10 @@ class UsermodTemperature : public Usermod {
// if (!initDone) return; // prevent crash on boot applyPreset()
//}
void appendConfigData() {
oappend(SET_F("addInfo('Temperature:help',0,'<button onclick=\"location.href=&quot;https://mm.kno.wled.ge/usermods/Temperature&quot;\" type=\"button\">?</button>');"));
}
/**
* addToConfig() (called from set.cpp) stores persistent properties to cfg.json
*/

View File

@@ -204,6 +204,10 @@ class AutoSaveUsermod : public Usermod {
}
}
void appendConfigData() {
oappend(SET_F("addInfo('Autosave:help',0,'<button onclick=\"location.href=&quot;https://mm.kno.wled.ge/usermods/Autosave&quot;\" type=\"button\">?</button>');"));
}
/*
* addToConfig() can be used to add custom persistent settings to the cfg.json file in the "um" (usermod) object.
* It will be called by WLED when settings are actually saved (for example, LED settings are saved)