WLED version 0.15.0
I’m trying to create my own usermod, I have two questions:
- Why doesn’t the button in Info work for me, it doesn’t switch the variable.
JsonArray infoArr = user.createNestedArray(FPSTR(_name));
String uiDomString = F("<button class=\"btn btn-xs\" onclick=\"requestJson({'");
uiDomString += FPSTR(_name);
uiDomString += F("':{'");
uiDomString += FPSTR(_tstBtn);
uiDomString += F("':");
uiDomString += tstBtn ? "false" : "true";
uiDomString += F("}});\"><i class=\"icons ");
uiDomString += tstBtn ? "on" : "off";
uiDomString += F("\"></i></button>");
infoArr.add(uiDomString);
- I want to use the meaning of the POWER button. I read the entire wled.h file and did not find anything or did not understand which global variable corresponds to this button.
Help me figure it out!!!