2017-10-17 09:55:25 +00:00
|
|
|
#include <WiFi.h>
|
2017-05-19 23:32:31 +00:00
|
|
|
#include <EasyUI.h>
|
|
|
|
|
|
|
|
const char* ssid = "EasyUI";
|
|
|
|
const char* password = "";
|
|
|
|
|
|
|
|
void setup(void) {
|
|
|
|
Serial.begin(115200);
|
|
|
|
WiFi.mode(WIFI_AP);
|
|
|
|
WiFi.softAP(ssid, password);
|
2017-10-17 09:55:25 +00:00
|
|
|
|
2017-05-19 23:32:31 +00:00
|
|
|
Serial.println("");
|
|
|
|
Serial.print("IP address: ");
|
|
|
|
Serial.println(WiFi.softAPIP());
|
|
|
|
|
2017-10-17 09:55:25 +00:00
|
|
|
EasyUI.title("LARSControl");
|
|
|
|
|
2017-05-19 23:32:31 +00:00
|
|
|
EasyUI.label("Label","123");
|
2017-10-17 09:55:25 +00:00
|
|
|
EasyUI.label("Label2","456");
|
|
|
|
EasyUI.label("Label3","789");
|
|
|
|
EasyUI.button("LED", &callback1);
|
2017-05-19 23:32:31 +00:00
|
|
|
EasyUI.begin();
|
|
|
|
}
|
|
|
|
|
|
|
|
void loop(void) {
|
2017-10-17 09:55:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void callback1(void) {
|
|
|
|
Serial.println("CALLBACK UNO");
|
|
|
|
}
|
|
|
|
void callback2(void) {
|
|
|
|
Serial.println("CALLBACK DOS");
|
|
|
|
}
|
|
|
|
void callback3(void) {
|
|
|
|
Serial.println("CALLBACK TRES");
|
2017-05-19 23:32:31 +00:00
|
|
|
}
|