Skip to content

Commit 332931e

Browse files
committed
Fixed example comment
1 parent 4d28ea8 commit 332931e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/shared/examples/02.Digital/Debounce/Debounce.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ int ledState = HIGH; // the current state of the output pin
4040
int buttonState; // the current reading from the input pin
4141
int lastButtonState = LOW; // the previous reading from the input pin
4242

43-
// the following variables are long's because the time, measured in miliseconds,
44-
// will quickly become a bigger number than can be stored in an int.
43+
// the following variables are unsigned long's because the time, measured in miliseconds,
44+
// will quickly become a bigger number than can't be stored in an int.
4545
unsigned long lastDebounceTime = 0; // the last time the output pin was toggled
4646
unsigned long debounceDelay = 50; // the debounce time; increase if the output flickers
4747

0 commit comments

Comments
 (0)