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

@@ -625,7 +625,7 @@ lib_deps_min =
; monitor_filters = esp32_exception_decoder ; used to show crash details
build_flags_max =
-D WLED_MAX_USERMODS=11 ; default only 4-6
-D WLED_MAX_USERMODS=12 ; default only 4-6
;; -D ARDUINO_USB_CDC_ON_BOOT=0 ; needed for arduino-esp32 >=2.0.4 ewowi to softhack: move to build_flags_min? - We need a different solution
-D WLED_USE_MY_CONFIG ; include custom my_config.h ewowi to softhack: redundant as also in build_flags_min?
-D USERMOD_DALLASTEMPERATURE
@@ -639,6 +639,7 @@ build_flags_max =
-D USERMOD_BATTERY ;; enable Battery usermod
-D USERMOD_BATTERY_USE_LIPO ;; use new "decharging curve" for LiPo cells
-D USERMOD_BH1750
-D USERMOD_ANIMATED_STAIRCASE
lib_deps_max =
OneWire@~2.3.5 ; used for USERMOD_FOUR_LINE_DISPLAY and USERMOD_DALLASTEMPERATURE

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)