From e0d3ea3647738ab7f139a95f2ae9fe1d9e7a562e Mon Sep 17 00:00:00 2001 From: zlaxy Date: Sat, 8 Feb 2020 18:05:47 +0300 Subject: [PATCH] shorter button delays --- hencoop.ino | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/hencoop.ino b/hencoop.ino index 26e4c64..2ea426a 100644 --- a/hencoop.ino +++ b/hencoop.ino @@ -26,8 +26,8 @@ byte buttonCommand = 0; // Variable for buttons value: 0 - nothin byte displayWork = 0; // Variable for display status: 0 - nothing, 1 - work long previousButtonMillis = 0; // Button previous press counter long buttonPressed = 0; // Button ms pressed counter -long buttonLongPress = 5000; // Interval for long press button action -long buttonShortPress = 600; // Interval for short press button action +long buttonLongPress = 1500; // Interval for long press button action +long buttonShortPress = 400; // Interval for short press button action unsigned long lastButtonPressed; @@ -222,7 +222,7 @@ void checkTime() { lightOn(); delay(60000); } - if (hour() == 17 && minute() == 35) { + if (hour() == 18 && minute() == 35) { lightOff(); delay(60000); } @@ -241,7 +241,7 @@ void checkTime() { lightOn(); delay(60000); } - if (hour() == 18 && minute() == 30) { + if (hour() == 19 && minute() == 30) { lightOff(); delay(60000); } @@ -260,7 +260,7 @@ void checkTime() { lightOn(); delay(60000); } - if (hour() == 19 && minute() == 30) { + if (hour() == 20 && minute() == 30) { lightOff(); delay(60000); } @@ -334,7 +334,7 @@ void checkTime() { lightOn(); delay(60000); } - if (hour() == 19 && minute() == 50) { + if (hour() == 20 && minute() == 50) { lightOff(); delay(60000); } @@ -353,7 +353,7 @@ void checkTime() { lightOn(); delay(60000); } - if (hour() == 18 && minute() == 30) { + if (hour() == 19 && minute() == 30) { lightOff(); delay(60000); } @@ -372,7 +372,7 @@ void checkTime() { lightOn(); delay(60000); } - if (hour() == 17 && minute() == 30) { + if (hour() == 18 && minute() == 30) { lightOff(); delay(60000); } @@ -391,7 +391,7 @@ void checkTime() { lightOn(); delay(60000); } - if (hour() == 17 && minute() == 5) { + if (hour() == 18 && minute() == 5) { lightOff(); delay(60000); } @@ -400,4 +400,4 @@ void checkTime() { delay(60000); } } -} \ No newline at end of file +}