diff --git a/src/main.cpp b/src/main.cpp index 29f94e6..1a5e6d3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -33,7 +33,7 @@ int ButtonClose = 12; int MotorPin1 = 0; int MotorPin2 = 2; -int duration = 10000; +int duration = 60000; WebServer server(80); @@ -111,8 +111,8 @@ void setup() { delay(100); } - pinMode(ButtonOpen, INPUT); - pinMode(ButtonClose, INPUT); + pinMode(ButtonOpen, INPUT_PULLUP); + pinMode(ButtonClose, INPUT_PULLUP); pinMode(MotorPin1, OUTPUT); pinMode(MotorPin2, OUTPUT);