Updates pins
This commit is contained in:
parent
43859b5b96
commit
20eed3abe0
|
@ -2,8 +2,8 @@
|
|||
#include <ArduinoOTA.h>
|
||||
#include <OneButton.h>
|
||||
|
||||
OneButton lock(D1, true);
|
||||
OneButton door(D2, true);
|
||||
OneButton lock(D2, true);
|
||||
OneButton door(D1, true);
|
||||
|
||||
#define FW_NAME "ctdoor"
|
||||
#define FW_VERSION "2.1.5"
|
||||
|
@ -133,8 +133,8 @@ void setup() {
|
|||
door.attachLongPressStop(lockactivityOpen);
|
||||
lock.attachLongPressStart(dooractivityClose);
|
||||
lock.attachLongPressStop(dooractivityOpen);
|
||||
lock.setPressTicks(250);
|
||||
door.setPressTicks(250);
|
||||
lock.setPressTicks(20);
|
||||
door.setPressTicks(20);
|
||||
Homie.setLedPin(LED_BUILTIN, LOW);
|
||||
ctdoor.advertise("cmd").settable(cmdHandler);
|
||||
ctdoor.advertise("door").settable(fakeHandler);
|
||||
|
|
Loading…
Reference in New Issue