mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-01 12:24:14 +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:
|
// wend from on to off:
|
||||||
Serial.println("off");
|
Serial.println("off");
|
||||||
}
|
}
|
||||||
|
// Delay a little bit to avoid bouncing
|
||||||
|
delay(50);
|
||||||
}
|
}
|
||||||
// save the current state as the last state,
|
// save the current state as the last state,
|
||||||
//for next time through the loop
|
//for next time through the loop
|
||||||
|
Loading…
Reference in New Issue
Block a user