Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bc96604

Browse files
committed
Fixed 02.Digital/StateChangeDetection buoncing issue
1 parent ba931c0 commit bc96604

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎examples/02.Digital/StateChangeDetection/StateChangeDetection.ino‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ void loop() {
6464
// wend from on to off:
6565
Serial.println("off");
6666
}
67+
// Delay a little bit to avoid bouncing
68+
delay(50);
6769
}
6870
// save the current state as the last state,
6971
//for next time through the loop

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /