mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-15 01:55:59 +08:00
Add some sanity check / update readme with board
show how board is connected it Davinci
This commit is contained in:
parent
c3dc621e8d
commit
62eb43de8e
BIN
Davinci/backside.jpg
Normal file
BIN
Davinci/backside.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 959 KiB |
BIN
Davinci/board.jpg
Normal file
BIN
Davinci/board.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 MiB |
BIN
Davinci/boardconnected.jpg
Normal file
BIN
Davinci/boardconnected.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 MiB |
BIN
Davinci/screen.jpg
Normal file
BIN
Davinci/screen.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 MiB |
12
README.md
12
README.md
@ -149,7 +149,13 @@ Currently, I tested on ESP01 using 64K SPIFFS ( please use data directory conten
|
||||
-- UI Improvement
|
||||
--<s>Printer EEPROM management</s> (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.
|
||||
<img src=https://raw.githubusercontent.com/luc-github/ESP8266/master/Davinci/board.jpg><br>
|
||||
Connected to Davinci:
|
||||
<img src=https://raw.githubusercontent.com/luc-github/ESP8266/master/Davinci/boardconnected.jpg><br>
|
||||
The back cover:
|
||||
<img src=https://raw.githubusercontent.com/luc-github/ESP8266/master/Davinci/backside.jpg><br>
|
||||
The screen when connected to AP:
|
||||
<img src=https://raw.githubusercontent.com/luc-github/ESP8266/master/Davinci/screen.jpg.jpg><br>
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user