We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54b33f4 commit 12bf3f6Copy full SHA for 12bf3f6
E15-drukknop-long-press/drukknop-long-press.ino
@@ -77,7 +77,11 @@ void readButtonState() {
77
78
// Als er geen meting loopt voor het bepalen of de knop lang is ingedrukt EN
79
// Als de tijd dat de knop is ingedrukt kleiner is dan de minimale tijd die nodig is voor een lang ingedrukte knop
80
- if (!buttonStateLongPress && buttonPressDuration < minButtonLongPressDuration) {
+ // Note: In de video staat:
81
+ // if (!buttonStateLongPress && buttonPressDuration < minButtonLongPressDuration) {
82
+ // omdat buttonStateLongPress op regel 75 op FALSE wordt gezet, is !buttonStateLongPress altijd TRUE
83
+ // dit kan dus worden weggehaald.
84
+ if (buttonPressDuration < minButtonLongPressDuration) {
85
Serial.println("Knop kort ingedrukt");
86
}
87
0 commit comments