1
0
mirror of https://github.com/s00500/ESPUI.git synced 2025-07-04 01:00:19 +00:00

7 Commits
1.0 ... 1.1.1

Author SHA1 Message Date
0f0162ad8b Versionbump 2017-10-20 12:40:48 +02:00
356f3d6edd More example mistakes
when stressed out...
2017-10-20 12:04:03 +02:00
436c700139 Version bump 2017-10-20 11:52:43 +02:00
929aa109e4 Update gui.ino
typo
2017-10-20 11:49:54 +02:00
4ee8b7e6b4 Update keywords.txt 2017-10-20 11:28:10 +02:00
912738198d Merge pull request #1 from per1234/keyword-separator
Use correct separator in keywords.txt
2017-10-20 11:25:51 +02:00
4b331eb096 Use correct separator in keywords.txt
The Arduino IDE requires the use of a tab separator between the name and identifier. Without this tab the keyword is not highlighted.

Reference: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#keywords
2017-10-19 23:52:29 -07:00
3 changed files with 23 additions and 21 deletions

View File

@ -1,5 +1,5 @@
#include <WiFi.h>
#include <EasyUI.h>
#include <ESPUI.h>
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;
}
}

View File

@ -1,8 +1,10 @@
EasyUI KEYWORD1
ESPUI KEYWORD1
detectCDN KEYWORD2
title KEYWORD2
begin KEYWORD2
label KEYWORD2
toggleButton KEYWORD2
loop KEYWORD2
button KEYWORD2
switcher KEYWORD2
pad KEYWORD2
begin KEYWORD2
print KEYWORD2
updateSwitcher KEYWORD2

View File

@ -1,5 +1,5 @@
name=ESPUI
version=1.0
version=1.1.1
author=Lukas Bachschwell
maintainer=Lukas Bachschwell <lukas@lbsfilm.at>
sentence=ESP32 Web Interface Library