1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-11-22 04:00:55 +00:00

Changing Example titel and reformat

This commit is contained in:
Lukas Bachschwell 2018-05-27 10:43:47 +02:00
parent cb5f00cbc0
commit c901ff9408

View File

@ -107,9 +107,9 @@ void setup(void) {
WiFi.mode(WIFI_AP); WiFi.mode(WIFI_AP);
#if defined(ESP32) #if defined(ESP32)
WiFi.setHostname(ssid); WiFi.setHostname(ssid);
#else #else
WiFi.hostname(ssid); WiFi.hostname(ssid);
#endif #endif
WiFi.softAP(ssid); WiFi.softAP(ssid);
@ -120,18 +120,18 @@ void setup(void) {
// change the beginning to this if you want to join an existing network // change the beginning to this if you want to join an existing network
/* /*
Serial.begin(115200); Serial.begin(115200);
WiFi.begin(ssid, password); WiFi.begin(ssid, password);
Serial.println(""); Serial.println("");
// Wait for connection // Wait for connection
while (WiFi.status() != WL_CONNECTED) { while (WiFi.status() != WL_CONNECTED) {
delay(500); delay(500);
Serial.print("."); Serial.print(".");
} }
Serial.println(""); Serial.println("");
Serial.print("IP address: "); Serial.print("IP address: ");
Serial.println(WiFi.localIP()); Serial.println(WiFi.localIP());
*/ */
ESPUI.label("Status:", COLOR_TURQUOISE, "Stop"); ESPUI.label("Status:", COLOR_TURQUOISE, "Stop");
ESPUI.label("Millis:", COLOR_EMERALD, "0"); ESPUI.label("Millis:", COLOR_EMERALD, "0");
@ -144,7 +144,7 @@ void setup(void) {
ESPUI.slider("Slider one", &slider, COLOR_ALIZARIN, "30"); ESPUI.slider("Slider one", &slider, COLOR_ALIZARIN, "30");
ESPUI.slider("Slider two", &slider, COLOR_NONE, "100"); ESPUI.slider("Slider two", &slider, COLOR_NONE, "100");
ESPUI.begin("ESP32 Control"); ESPUI.begin("ESPUI Control");
} }
void loop(void) { void loop(void) {