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 e9a277e commit a69c62eCopy full SHA for a69c62e
examples/02.Digital/Debounce/Debounce.ino
@@ -21,6 +21,9 @@
21
by Limor Fried
22
modified 28 Dec 2012
23
by Mike Walters
24
+ modified 30 Aug 2016
25
+ by Arturo Guadalupi
26
+
27
28
This example code is in the public domain.
29
@@ -39,8 +42,8 @@ int lastButtonState = LOW; // the previous reading from the input pin
39
42
40
43
// the following variables are long's because the time, measured in miliseconds,
41
44
// will quickly become a bigger number than can be stored in an int.
-long lastDebounceTime = 0; // the last time the output pin was toggled
-long debounceDelay = 50; // the debounce time; increase if the output flickers
45
+unsignedlong lastDebounceTime = 0; // the last time the output pin was toggled
46
+unsignedlong debounceDelay = 50; // the debounce time; increase if the output flickers
47
48
void setup() {
49
pinMode(buttonPin, INPUT);
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments