shorter button delays
This commit is contained in:
parent
ba2258915c
commit
e0d3ea3647
18
hencoop.ino
18
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
|
byte displayWork = 0; // Variable for display status: 0 - nothing, 1 - work
|
||||||
long previousButtonMillis = 0; // Button previous press counter
|
long previousButtonMillis = 0; // Button previous press counter
|
||||||
long buttonPressed = 0; // Button ms pressed counter
|
long buttonPressed = 0; // Button ms pressed counter
|
||||||
long buttonLongPress = 5000; // Interval for long press button action
|
long buttonLongPress = 1500; // Interval for long press button action
|
||||||
long buttonShortPress = 600; // Interval for short press button action
|
long buttonShortPress = 400; // Interval for short press button action
|
||||||
|
|
||||||
unsigned long lastButtonPressed;
|
unsigned long lastButtonPressed;
|
||||||
|
|
||||||
|
@ -222,7 +222,7 @@ void checkTime() {
|
||||||
lightOn();
|
lightOn();
|
||||||
delay(60000);
|
delay(60000);
|
||||||
}
|
}
|
||||||
if (hour() == 17 && minute() == 35) {
|
if (hour() == 18 && minute() == 35) {
|
||||||
lightOff();
|
lightOff();
|
||||||
delay(60000);
|
delay(60000);
|
||||||
}
|
}
|
||||||
|
@ -241,7 +241,7 @@ void checkTime() {
|
||||||
lightOn();
|
lightOn();
|
||||||
delay(60000);
|
delay(60000);
|
||||||
}
|
}
|
||||||
if (hour() == 18 && minute() == 30) {
|
if (hour() == 19 && minute() == 30) {
|
||||||
lightOff();
|
lightOff();
|
||||||
delay(60000);
|
delay(60000);
|
||||||
}
|
}
|
||||||
|
@ -260,7 +260,7 @@ void checkTime() {
|
||||||
lightOn();
|
lightOn();
|
||||||
delay(60000);
|
delay(60000);
|
||||||
}
|
}
|
||||||
if (hour() == 19 && minute() == 30) {
|
if (hour() == 20 && minute() == 30) {
|
||||||
lightOff();
|
lightOff();
|
||||||
delay(60000);
|
delay(60000);
|
||||||
}
|
}
|
||||||
|
@ -334,7 +334,7 @@ void checkTime() {
|
||||||
lightOn();
|
lightOn();
|
||||||
delay(60000);
|
delay(60000);
|
||||||
}
|
}
|
||||||
if (hour() == 19 && minute() == 50) {
|
if (hour() == 20 && minute() == 50) {
|
||||||
lightOff();
|
lightOff();
|
||||||
delay(60000);
|
delay(60000);
|
||||||
}
|
}
|
||||||
|
@ -353,7 +353,7 @@ void checkTime() {
|
||||||
lightOn();
|
lightOn();
|
||||||
delay(60000);
|
delay(60000);
|
||||||
}
|
}
|
||||||
if (hour() == 18 && minute() == 30) {
|
if (hour() == 19 && minute() == 30) {
|
||||||
lightOff();
|
lightOff();
|
||||||
delay(60000);
|
delay(60000);
|
||||||
}
|
}
|
||||||
|
@ -372,7 +372,7 @@ void checkTime() {
|
||||||
lightOn();
|
lightOn();
|
||||||
delay(60000);
|
delay(60000);
|
||||||
}
|
}
|
||||||
if (hour() == 17 && minute() == 30) {
|
if (hour() == 18 && minute() == 30) {
|
||||||
lightOff();
|
lightOff();
|
||||||
delay(60000);
|
delay(60000);
|
||||||
}
|
}
|
||||||
|
@ -391,7 +391,7 @@ void checkTime() {
|
||||||
lightOn();
|
lightOn();
|
||||||
delay(60000);
|
delay(60000);
|
||||||
}
|
}
|
||||||
if (hour() == 17 && minute() == 5) {
|
if (hour() == 18 && minute() == 5) {
|
||||||
lightOff();
|
lightOff();
|
||||||
delay(60000);
|
delay(60000);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue