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