From ea7246e7c3221c9160586baa81fb9b4efb3967e1 Mon Sep 17 00:00:00 2001 From: Ard Kuijpers Date: Wed, 27 May 2020 23:10:59 +0200 Subject: [PATCH] changed buttonPin D5 on the NodeMCU was not working anymore, so changed the button to D6 --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index a6e80f0..572cc21 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -10,7 +10,7 @@ //const int echoPin = D2; const int relayPin = D1; const int contactPin = D2; -const int buttonPin = D5; +const int buttonPin = D6; const int dhtPin = D7; ; const int ledPin = LED_BUILTIN; const int heartbeatPin = LED_BUILTIN; @@ -52,7 +52,7 @@ void setup() { pinMode(ledPin, OUTPUT); Homie_setBrand("EtxeanIoT"); - Homie_setFirmware("etxean-garagesensor", "1.2.3"); + Homie_setFirmware("etxean-garagesensor", "1.2.4"); Homie.setLoopFunction(loopHandler); // obstacleNode.setChangeHandler(changeHandler); buttonNode.onChange(buttonChangeHandler);