1
0
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:
Cristian Maglie 2012-06-25 19:15:49 +02:00
parent ddc8fa98c9
commit 33778af0db

View File

@ -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