LeeT WiFiLamp code and test

Dependencies:   ESP8266_WebServer mbed

Fork of WiFiLamp by Sebastian Schocke

Revision:
13:1e8f27da036a
Parent:
12:fbf950985e1c
Child:
19:7fdccfd5b50b
diff -r fbf950985e1c -r 1e8f27da036a main.cpp
--- a/main.cpp	Sun Dec 28 16:09:20 2014 +0000
+++ b/main.cpp	Mon Dec 29 11:42:53 2014 +0000
@@ -2,7 +2,7 @@
 #include "PololuLedStrip.h"
 #include "ESP8266_WebServer.h"
 #include <string>
-#define DEBUG_WIFI
+//#define DEBUG_WIFI
 
 PololuLedStrip ledStrip(D11);
 
@@ -35,14 +35,15 @@
 }
 
 int main() {
+    pc.baud(115200);
     
     pc.printf("WiFi Lamp Test - v0.01 ...\r\n");    
     
-    setColor( 250, 0, 0);
+    setColor( 25, 0, 0);
     
     wifiCHPD = 0;
     wifiReset = 0;
-    wifiSerial.baud(9600);
+    wifiSerial.baud(115200);
     wifiSerial.attach(&rxint);
 #ifdef DEBUG_WIFI
     server.debugSerial = &pc;
@@ -51,16 +52,16 @@
     
     pc.printf("Powering WiFi...\r\n");    
     wifiCHPD = 1;
+    wifiReset = 1;
     wait_ms(250);
     pc.printf("Hardware Reset WiFi...\r\n");    
-    wifiReset = 1;
     wifiOn = 1;
     
     pc.printf("Starting Web Server...\r\n");
     server.Initialize();
     pc.printf("Done\r\n");    
     
-    setColor( 0, 250, 0);
+    setColor( 0, 25, 0);
     wait_ms(500);
     setColor( 0, 0, 0);