Skip to content

Commit 6aefbbb

Browse files
committed
Applied memory optimizations from sascha432
Updated my additions
1 parent 79ec3f1 commit 6aefbbb

28 files changed

+1853
-1783
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1509,7 +1509,7 @@ For Arduino IDE create/update `platform.local.txt`:
15091509
15101510
Add/Update the following line:
15111511
```
1512-
compiler.cpp.extra_flags=-DDASYNCWEBSERVER_REGEX
1512+
compiler.cpp.extra_flags=-DASYNCWEBSERVER_REGEX
15131513
```
15141514
15151515
For platformio modify `platformio.ini`:

examples/SmartSwitch/PinOut_Notes.txt

+56-13
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,56 @@
1-
ESP12
2-
3-
static const uint8_t D0 = 16;
4-
static const uint8_t D1 = 5;
5-
static const uint8_t D2 = 4; // DHT DATA I/O
6-
static const uint8_t D3 = 0; // BUTTON - most modules have it populated on PCB
7-
static const uint8_t D4 = 2; // LED (RELAY) - most modules have it populated on PCB
8-
static const uint8_t D5 = 14;
9-
static const uint8_t D6 = 12;
10-
static const uint8_t D7 = 13;
11-
static const uint8_t D8 = 15;
12-
static const uint8_t D9 = 3;
13-
static const uint8_t D10 = 1;
1+
This application:
2+
D2 = 4; // DHT DATA I/O
3+
D3 = 0; // BUTTON - most modules have it populated on PCB
4+
D4 = 2; // LED (RELAY) - most modules have it populated on PCB
5+
6+
7+
8+
Pinout ESP12 (8266)
9+
D GPIO In Out Notes
10+
11+
D0 16 no interrupt no PWM or I2C support HIGH at boot used to wake up from deep sleep
12+
D1 5 OK OK often used as SCL (I2C)
13+
D2 4 OK OK often used as SDA (I2C)
14+
D3 0 PU OK pulled up connected to FLASH button, boot fails if pulled LOW
15+
D4 2 PU OK pulled up HIGH at boot connected to on-board LED, boot fails if pulled LOW
16+
D5 14 OK OK SPI (SCLK)
17+
D6 12 OK OK SPI (MISO)
18+
D7 13 OK OK SPI (MOSI)
19+
D8 15 pulled to GND OK SPI (CS) Boot fails if pulled HIGH
20+
RX 3 OK RX pin HIGH at boot
21+
TX 1 TX pin OK HIGH at boot debug output at boot, boot fails if pulled LOW
22+
A0 ADC0 Analog Input
23+
24+
25+
Pinout ESP32
26+
IO In Out Notes
27+
28+
0 PU OK pulled-up input, outputs PWM signal at boot
29+
1 TX OK debug output at boot
30+
2 OK OK connected to on-board LED
31+
3 OK RX pin HIGH at boot
32+
4 OK OK
33+
5 OK OK outputs PWM signal at boot
34+
35+
6-11 x x connected to the integrated SPI flash
36+
37+
12 OK OK boot fail if pulled high
38+
13 OK OK
39+
14 OK OK outputs PWM signal at boot
40+
15 OK OK outputs PWM signal at boot
41+
16 OK OK
42+
17 OK OK
43+
18 OK OK
44+
19 OK OK
45+
21 OK OK
46+
22 OK OK
47+
23 OK OK
48+
25 OK OK
49+
26 OK OK
50+
27 OK OK
51+
32 OK OK
52+
33 OK OK
53+
34 OK input only
54+
35 OK input only
55+
36 OK input only
56+
39 OK input only

examples/SmartSwitch/README.md

+17-16
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
![](1.PNG) ![](2.PNG)
2-
##
3-
![](3.PNG) ![](4.PNG)
4-
5-
## SmartSwitch
6-
* Remote Temperature Control application with schedule (example car block heater or battery charger)
7-
* Based on ESP_AsyncFSBrowser example
8-
* Wide browser compatibility, no extra server-side needed.
9-
* HTTP server and WebSocket, single port
10-
* Standalone, no JS dependencies for the browser from Internet (I hope), ace editor included
11-
* Added ESPAsyncWiFiManager
12-
* Real Time (NTP) w/ Time Zones
13-
* Memorized settings to EEPROM
14-
* Multiple clients can be connected at same time, they see each other' requests
15-
* Default credentials <b>smart:switch</b>
16-
* Use latest ESP8266 core lib (from Github)
1+
![](1.PNG) ![](2.PNG)
2+
##
3+
![](3.PNG) ![](4.PNG)
4+
5+
## SmartSwitch
6+
* Remote Temperature Control application with schedule (example car block heater or battery charger)
7+
* Based on ESP_AsyncFSBrowser example
8+
* Wide browser compatibility, no extra server-side needed
9+
* HTTP server and WebSocket, single port
10+
* Standalone, no JS dependencies for the browser from Internet (I hope), ace editor included
11+
* Added ESPAsyncWiFiManager
12+
* Fallback to an own WIFI_AP, no Internet to sync but by a browser the clock can be set once
13+
* Real Time (NTP) w/ Time Zones
14+
* Memorized settings to EEPROM
15+
* Multiple clients can be connected at same time, they see each other' requests
16+
* Default credentials <b>smart:switch</b>
17+
* Use latest ESP8266 or ESP32 core(from GitHub)

0 commit comments

Comments
 (0)