diff --git a/examples/gui/gui.ino b/examples/gui/gui.ino index 2753631..f27620a 100644 --- a/examples/gui/gui.ino +++ b/examples/gui/gui.ino @@ -1,5 +1,5 @@ #include -#include +#include const char* ssid = "ESP32"; const char* password = ""; @@ -31,22 +31,22 @@ void setup(void) { Serial.println(WiFi.localIP()); */ - EasyUI.label("Status: Stop"); - EasyUI.label("0"); - EasyUI.button("Push Button", &buttonCallback); - EasyUI.button("Push Button", &buttonExample); - EasyUI.pad("center", true, &padExample); - EasyUI.pad("NoCenter", false, &padExample); - EasyUI.switcher("Switch one", false, &switchExample); - EasyUI.switcher("Switch two", true, &otherSwitchExample); + ESPUI.label("Status: Stop"); + ESPUI.label("0"); + ESPUI.button("Push Button", &buttonCallback); + ESPUI.button("Push Button", &buttonExample); + ESPUI.pad("center", true, &padExample); + ESPUI.pad("NoCenter", false, &padExample); + ESPUI.switcher("Switch one", false, &switchExample); + ESPUI.switcher("Switch two", true, &otherSwitchExample); - EasyUI.begin("ESP32 Control"); + ESPUI.begin("ESP32 Control"); } void loop(void) { if (millis() - oldTime > 5000) { - EasyUI.print(1, String(millis())); + ESPUI.print(1, String(millis())); oldTime = millis(); } } @@ -67,11 +67,11 @@ void buttonExample(int id, int type) { switch (type) { case B_DOWN: Serial.println("Status: Start"); - EasyUI.print(0, "Status: Start"); + ESPUI.print(0, "Status: Start"); break; case B_UP: Serial.println("Status: Stop"); - EasyUI.print(0, "Status: Stop"); + ESPUI.print(0, "Status: Stop"); break; } } diff --git a/keywords.txt b/keywords.txt index 4b19b1d..05095b7 100644 --- a/keywords.txt +++ b/keywords.txt @@ -1,8 +1,10 @@ -EasyUI KEYWORD1 +ESPUI KEYWORD1 -detectCDN KEYWORD2 -title KEYWORD2 -begin KEYWORD2 -label KEYWORD2 -toggleButton KEYWORD2 -loop KEYWORD2 +label KEYWORD2 +button KEYWORD2 +switcher KEYWORD2 +pad KEYWORD2 + +begin KEYWORD2 +print KEYWORD2 +updateSwitcher KEYWORD2 diff --git a/library.properties b/library.properties index 065a7c3..b9caa9c 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=ESPUI -version=1.0 +version=1.1.1 author=Lukas Bachschwell maintainer=Lukas Bachschwell sentence=ESP32 Web Interface Library