Updates pins

This commit is contained in:
naster_mick 2019-03-07 22:53:44 +01:00
parent 43859b5b96
commit 20eed3abe0
1 changed files with 4 additions and 4 deletions

View File

@ -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);