Skip to content

Commit 599c0ba

Browse files
authored
ESP8266 Gateway examples: clarify inclusion pin (#1065)
The comment for inclusion mode pin and the definition of MY_INCLUSION_MODE_BUTTON_PIN did not match. GPIO5 should be safe to use, while GPIO3 is used for the UART which might result in conflict. This fixes #993
1 parent 57eca4f commit 599c0ba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/GatewayESP8266/GatewayESP8266.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
* - Connect GPIO0 via 10K resistor to VCC, and via switch to GND ('bootload switch')
5959
*
6060
* Inclusion mode button:
61-
* - Connect GPIO5 via switch to GND ('inclusion switch')
61+
* - Connect GPIO5 (=D1) via switch to GND ('inclusion switch')
6262
*
6363
* Hardware SHA204 signing is currently not supported!
6464
*
@@ -113,7 +113,7 @@
113113
// Set inclusion mode duration (in seconds)
114114
//#define MY_INCLUSION_MODE_DURATION 60
115115
// Digital pin used for inclusion mode button
116-
//#define MY_INCLUSION_MODE_BUTTON_PIN 3
116+
//#define MY_INCLUSION_MODE_BUTTON_PIN D1
117117

118118
// Set blinking period
119119
//#define MY_DEFAULT_LED_BLINK_PERIOD 300

examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
* - Connect GPIO0 via 10K resistor to VCC, and via switch to GND ('bootload switch')
5151
*
5252
* Inclusion mode button:
53-
* - Connect GPIO5 via switch to GND ('inclusion switch')
53+
* - Connect GPIO5 (=D1) via switch to GND ('inclusion switch')
5454
*
5555
* Hardware SHA204 signing is currently not supported!
5656
*
@@ -113,7 +113,7 @@
113113
// Set inclusion mode duration (in seconds)
114114
//#define MY_INCLUSION_MODE_DURATION 60
115115
// Digital pin used for inclusion mode button
116-
//#define MY_INCLUSION_MODE_BUTTON_PIN 3
116+
//#define MY_INCLUSION_MODE_BUTTON_PIN D1
117117

118118
// Set blinking period
119119
//#define MY_DEFAULT_LED_BLINK_PERIOD 300

0 commit comments

Comments
 (0)