changed buttonPin
D5 on the NodeMCU was not working anymore, so changed the button to D6
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user