mirror of
https://github.com/s00500/ESPUI.git
synced 2024-11-22 04:00:55 +00:00
More example mistakes
when stressed out...
This commit is contained in:
parent
436c700139
commit
356f3d6edd
@ -31,22 +31,22 @@ void setup(void) {
|
|||||||
Serial.println(WiFi.localIP());
|
Serial.println(WiFi.localIP());
|
||||||
*/
|
*/
|
||||||
|
|
||||||
EasyUI.label("Status: Stop");
|
ESPUI.label("Status: Stop");
|
||||||
EasyUI.label("0");
|
ESPUI.label("0");
|
||||||
EasyUI.button("Push Button", &buttonCallback);
|
ESPUI.button("Push Button", &buttonCallback);
|
||||||
EasyUI.button("Push Button", &buttonExample);
|
ESPUI.button("Push Button", &buttonExample);
|
||||||
EasyUI.pad("center", true, &padExample);
|
ESPUI.pad("center", true, &padExample);
|
||||||
EasyUI.pad("NoCenter", false, &padExample);
|
ESPUI.pad("NoCenter", false, &padExample);
|
||||||
EasyUI.switcher("Switch one", false, &switchExample);
|
ESPUI.switcher("Switch one", false, &switchExample);
|
||||||
EasyUI.switcher("Switch two", true, &otherSwitchExample);
|
ESPUI.switcher("Switch two", true, &otherSwitchExample);
|
||||||
|
|
||||||
EasyUI.begin("ESP32 Control");
|
ESPUI.begin("ESP32 Control");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop(void) {
|
void loop(void) {
|
||||||
if (millis() - oldTime > 5000) {
|
if (millis() - oldTime > 5000) {
|
||||||
EasyUI.print(1, String(millis()));
|
ESPUI.print(1, String(millis()));
|
||||||
oldTime = millis();
|
oldTime = millis();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -67,11 +67,11 @@ void buttonExample(int id, int type) {
|
|||||||
switch (type) {
|
switch (type) {
|
||||||
case B_DOWN:
|
case B_DOWN:
|
||||||
Serial.println("Status: Start");
|
Serial.println("Status: Start");
|
||||||
EasyUI.print(0, "Status: Start");
|
ESPUI.print(0, "Status: Start");
|
||||||
break;
|
break;
|
||||||
case B_UP:
|
case B_UP:
|
||||||
Serial.println("Status: Stop");
|
Serial.println("Status: Stop");
|
||||||
EasyUI.print(0, "Status: Stop");
|
ESPUI.print(0, "Status: Stop");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user