1
0
mirror of https://github.com/s00500/ESPUI.git synced 2025-06-14 07:40:40 +00:00

Adding basic structure for new widgets

This commit is contained in:
2019-03-26 16:22:21 +01:00
parent 3c69f013fc
commit 043ba99ea9
7 changed files with 666 additions and 209 deletions

View File

@ -244,7 +244,7 @@ void loop(void) {
static bool testSwitchState = false;
if (millis() - oldTime > 5000) {
ESPUI.updateControl("Millis:", String(millis()));
ESPUI.updateControlValue(millisLabelId, String(millis()));
testSwitchState = !testSwitchState;
ESPUI.updateControlValue("Switch one", testSwitchState ? "1" : "0");
oldTime = millis();