From 599c0bada60089c74ecf187001cb57845c37a472 Mon Sep 17 00:00:00 2001 From: Mikael Falkvidd Date: Thu, 22 Feb 2018 12:04:03 +0100 Subject: [PATCH] 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 https://github.com/mysensors/MySensors/issues/993 --- examples/GatewayESP8266/GatewayESP8266.ino | 4 ++-- .../GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/GatewayESP8266/GatewayESP8266.ino b/examples/GatewayESP8266/GatewayESP8266.ino index b8c277b..54af4dc 100644 --- a/examples/GatewayESP8266/GatewayESP8266.ino +++ b/examples/GatewayESP8266/GatewayESP8266.ino @@ -58,7 +58,7 @@ * - Connect GPIO0 via 10K resistor to VCC, and via switch to GND ('bootload switch') * * Inclusion mode button: - * - Connect GPIO5 via switch to GND ('inclusion switch') + * - Connect GPIO5 (=D1) via switch to GND ('inclusion switch') * * Hardware SHA204 signing is currently not supported! * @@ -113,7 +113,7 @@ // Set inclusion mode duration (in seconds) //#define MY_INCLUSION_MODE_DURATION 60 // Digital pin used for inclusion mode button -//#define MY_INCLUSION_MODE_BUTTON_PIN 3 +//#define MY_INCLUSION_MODE_BUTTON_PIN D1 // Set blinking period //#define MY_DEFAULT_LED_BLINK_PERIOD 300 diff --git a/examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino b/examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino index 4fe945f..57fff44 100644 --- a/examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino +++ b/examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino @@ -50,7 +50,7 @@ * - Connect GPIO0 via 10K resistor to VCC, and via switch to GND ('bootload switch') * * Inclusion mode button: - * - Connect GPIO5 via switch to GND ('inclusion switch') + * - Connect GPIO5 (=D1) via switch to GND ('inclusion switch') * * Hardware SHA204 signing is currently not supported! * @@ -113,7 +113,7 @@ // Set inclusion mode duration (in seconds) //#define MY_INCLUSION_MODE_DURATION 60 // Digital pin used for inclusion mode button -//#define MY_INCLUSION_MODE_BUTTON_PIN 3 +//#define MY_INCLUSION_MODE_BUTTON_PIN D1 // Set blinking period //#define MY_DEFAULT_LED_BLINK_PERIOD 300