mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-01 23:29:28 +01:00
Fixed 02.Digital/StateChangeDetection buoncing issue
This commit is contained in:
parent
ddc8fa98c9
commit
33778af0db
@ -64,6 +64,8 @@ void loop() {
|
||||
// wend from on to off:
|
||||
Serial.println("off");
|
||||
}
|
||||
// Delay a little bit to avoid bouncing
|
||||
delay(50);
|
||||
}
|
||||
// save the current state as the last state,
|
||||
//for next time through the loop
|
||||
|
Loading…
x
Reference in New Issue
Block a user