implement addHB (Usermod help button utility function)

See https://github.com/Aircoookie/WLED/pull/2965
This commit is contained in:
Ewoud
2023-01-07 12:22:29 +01:00
parent 66b15d32d9
commit 2187aa5728
11 changed files with 193 additions and 183 deletions

View File

@@ -868,7 +868,8 @@ public:
//WLEDMM: add appendConfigData
void appendConfigData()
{
oappend(SET_F("addInfo('Rotary-Encoder:help',0,'<button onclick=\"location.href=&quot;https://mm.kno.wled.ge/usermods/Rotary-Encoder&quot;\" type=\"button\">?</button>');"));
oappend(SET_F("addHB('")); oappend(SET_F(_name)); oappend("');");
#ifdef ENCODER_DT_PIN
oappend(SET_F("xOption('Rotary-Encoder:DT-pin',1,' ⎌',")); oappendi(ENCODER_DT_PIN); oappend(");");
#endif