Add animated staircase to _max environments, add ? btn to Bat,temp,Asave
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -378,6 +378,7 @@ class UsermodBattery : public Usermod
|
||||
|
||||
void appendConfigData()
|
||||
{
|
||||
oappend(SET_F("addInfo('Battery:help',0,'<button onclick=\"location.href="https://mm.kno.wled.ge/usermods/Battery"\" 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');"));
|
||||
|
||||
@@ -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="https://mm.kno.wled.ge/usermods/Temperature"\" type=\"button\">?</button>');"));
|
||||
}
|
||||
|
||||
/**
|
||||
* addToConfig() (called from set.cpp) stores persistent properties to cfg.json
|
||||
*/
|
||||
|
||||
@@ -204,6 +204,10 @@ class AutoSaveUsermod : public Usermod {
|
||||
}
|
||||
}
|
||||
|
||||
void appendConfigData() {
|
||||
oappend(SET_F("addInfo('Autosave:help',0,'<button onclick=\"location.href="https://mm.kno.wled.ge/usermods/Autosave"\" 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)
|
||||
|
||||
Reference in New Issue
Block a user