diff --git a/Davinci/backside.jpg b/Davinci/backside.jpg new file mode 100644 index 00000000..f0c2fe1e Binary files /dev/null and b/Davinci/backside.jpg differ diff --git a/Davinci/board.jpg b/Davinci/board.jpg new file mode 100644 index 00000000..340892df Binary files /dev/null and b/Davinci/board.jpg differ diff --git a/Davinci/boardconnected.jpg b/Davinci/boardconnected.jpg new file mode 100644 index 00000000..8fd238ea Binary files /dev/null and b/Davinci/boardconnected.jpg differ diff --git a/Davinci/screen.jpg b/Davinci/screen.jpg new file mode 100644 index 00000000..a3293219 Binary files /dev/null and b/Davinci/screen.jpg differ diff --git a/README.md b/README.md index 3d5242cd..194690f1 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,13 @@ Currently, I tested on ESP01 using 64K SPIFFS ( please use data directory conten -- UI Improvement --Printer EEPROM management (Canceled/Postponed for next stage) - - -more to come +##Result of ESP12E on Davinci +I use a proto board to connect ESP12E socket, one micro switch for recovery, one jumper for normal usage/ flash, I did not put hardware switch. +
+Connected to Davinci: +
+The back cover: +
+The screen when connected to AP: +
diff --git a/esp8266/wifi.cpp b/esp8266/wifi.cpp index 11cad013..9e64222c 100644 --- a/esp8266/wifi.cpp +++ b/esp8266/wifi.cpp @@ -33,6 +33,15 @@ extern "C" { extern DNSServer dnsServer; #endif +WIFI_CONFIG::WIFI_CONFIG() +{ + iweb_port=DEFAULT_WEB_PORT; + idata_port=DEFAULT_DATA_PORT; + baud_rate=DEFAULT_BAUD_RATE; + sleep_mode=DEFAULT_SLEEP_MODE; + _hostname[0]=0; +} + const char * WIFI_CONFIG::get_hostname(){ if (WiFi.hostname().length()==0) { @@ -152,7 +161,6 @@ bool WIFI_CONFIG::Setup() if (!CONFIG::read_string(EP_HOSTNAME, hostname , MAX_HOSTNAME_LENGTH))strcpy(hostname,get_default_hostname()); //disconnect if connected WiFi.disconnect(); - current_mode=bflag; //this is AP mode if (bflag==AP_MODE) { diff --git a/esp8266/wifi.h b/esp8266/wifi.h index 20a9471f..02275cd7 100644 --- a/esp8266/wifi.h +++ b/esp8266/wifi.h @@ -36,7 +36,7 @@ class WIFI_CONFIG #ifdef MDNS_FEATURE MDNSResponder mdns; #endif - byte current_mode; + WIFI_CONFIG(); int iweb_port; int idata_port; long baud_rate;