Skip to content

Commit 62eb43d

Browse files
committed
Add some sanity check / update readme with board
show how board is connected it Davinci
1 parent c3dc621 commit 62eb43d

File tree

7 files changed

+19
-5
lines changed

7 files changed

+19
-5
lines changed

Davinci/backside.jpg

959 KB
Loading

Davinci/board.jpg

1.66 MB
Loading

Davinci/boardconnected.jpg

1.07 MB
Loading

Davinci/screen.jpg

1.48 MB
Loading

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,13 @@ Currently, I tested on ESP01 using 64K SPIFFS ( please use data directory conten
149149
-- UI Improvement
150150
--<s>Printer EEPROM management</s> (Canceled/Postponed for next stage)
151151

152-
153-
154-
more to come
152+
##Result of ESP12E on Davinci
153+
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.
154+
<img src=https://raw.githubusercontent.com/luc-github/ESP8266/master/Davinci/board.jpg><br>
155+
Connected to Davinci:
156+
<img src=https://raw.githubusercontent.com/luc-github/ESP8266/master/Davinci/boardconnected.jpg><br>
157+
The back cover:
158+
<img src=https://raw.githubusercontent.com/luc-github/ESP8266/master/Davinci/backside.jpg><br>
159+
The screen when connected to AP:
160+
<img src=https://raw.githubusercontent.com/luc-github/ESP8266/master/Davinci/screen.jpg.jpg><br>
155161

esp8266/wifi.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ extern "C" {
3333
extern DNSServer dnsServer;
3434
#endif
3535

36+
WIFI_CONFIG::WIFI_CONFIG()
37+
{
38+
iweb_port=DEFAULT_WEB_PORT;
39+
idata_port=DEFAULT_DATA_PORT;
40+
baud_rate=DEFAULT_BAUD_RATE;
41+
sleep_mode=DEFAULT_SLEEP_MODE;
42+
_hostname[0]=0;
43+
}
44+
3645
const char * WIFI_CONFIG::get_hostname(){
3746
if (WiFi.hostname().length()==0)
3847
{
@@ -152,7 +161,6 @@ bool WIFI_CONFIG::Setup()
152161
if (!CONFIG::read_string(EP_HOSTNAME, hostname , MAX_HOSTNAME_LENGTH))strcpy(hostname,get_default_hostname());
153162
//disconnect if connected
154163
WiFi.disconnect();
155-
current_mode=bflag;
156164
//this is AP mode
157165
if (bflag==AP_MODE)
158166
{

esp8266/wifi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class WIFI_CONFIG
3636
#ifdef MDNS_FEATURE
3737
MDNSResponder mdns;
3838
#endif
39-
byte current_mode;
39+
WIFI_CONFIG();
4040
int iweb_port;
4141
int idata_port;
4242
long baud_rate;

0 commit comments

Comments
 (0)