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 a69c62e commit f2367cdCopy full SHA for f2367cd
examples/02.Digital/Debounce/Debounce.ino
@@ -40,8 +40,8 @@ int ledState = HIGH; // the current state of the output pin
40
int buttonState; // the current reading from the input pin
41
int lastButtonState = LOW; // the previous reading from the input pin
42
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.
+// the following variables are unsigned long's because the time, measured in miliseconds,
+// will quickly become a bigger number than can't be stored in an int.
45
unsigned long lastDebounceTime = 0; // the last time the output pin was toggled
46
unsigned long debounceDelay = 50; // the debounce time; increase if the output flickers
47
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments