Programmvorlage für Aufgabe Jalousie

Dependencies:   LCD_i2c_GSOE ESP8266WebserverGSOE

Files at this revision

API Documentation at this revision

Comitter:
jack1930
Date:
Mon Aug 09 14:19:53 2021 +0000
Parent:
14:d7fa9ea57bbb
Commit message:
kleine Aenderungen

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r d7fa9ea57bbb -r eeff322a3571 main.cpp
--- a/main.cpp	Mon Aug 09 12:49:25 2021 +0000
+++ b/main.cpp	Mon Aug 09 14:19:53 2021 +0000
@@ -64,10 +64,7 @@
     //Ihr Code
 }
 
-void init()
-{
-    //Ihr Code
-}
+
 
 void anzeigen()
 {
@@ -86,9 +83,10 @@
     myWebserver.send(200,"text/html",getRootPage());
 }
 
-
-int main() {  
-    init();
+void init()
+{
+    //Ihr Code
+    
     myWebserver.on("/Hoch",&hoch);
     myWebserver.on("/Runter",&runter);
     myWebserver.on("/Anzeigen",&anzeigen);
@@ -97,6 +95,11 @@
     myLCD.clear();
     myLCD.cursorpos(0);
     myLCD.printf("%s",myWebserver.gibIP());
+}
+
+int main() {  
+    init();
+
     while(1)  {
         myWebserver.handleClient();
         //Ihr Code