Skip to content

Commit f2367cd

Browse files
committed
Fixed example comment
1 parent a69c62e commit f2367cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy