shorter button delays

This commit is contained in:
ivan 2020-02-08 18:05:47 +03:00
parent ba2258915c
commit e0d3ea3647
1 changed files with 10 additions and 10 deletions

View File

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