1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-11-05 10:20:54 +00:00
ESPUI/examples/softAP_UI_Test/softAP_UI_Test.ino

37 lines
666 B
Arduino
Raw Normal View History

2017-10-17 09:55:25 +00:00
#include <WiFi.h>
#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
Serial.println("");
Serial.print("IP address: ");
Serial.println(WiFi.softAPIP());
2017-10-17 09:55:25 +00:00
EasyUI.title("LARSControl");
EasyUI.label("Label","123");
2017-10-17 09:55:25 +00:00
EasyUI.label("Label2","456");
EasyUI.label("Label3","789");
EasyUI.button("LED", &callback1);
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");
}