Skip to content

Fix Debounce example to work as described #1192

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2013
Merged

Fix Debounce example to work as described #1192

merged 1 commit into from
Apr 16, 2013

Conversation

miek
Copy link
Contributor

@miek miek commented Dec 28, 2012

This alters the debounce example code to toggle the LED rather than just use
the button state to set the LED state. The comments and description seem to imply that this is the intended behaviour.

This came up on reddit today: http://www.reddit.com/r/arduino/comments/15ko75/arduino_tutorial_2_digital_debounce_problem and I also noticed a previous bug referencing the same issue (#293).

This alters the debounce example code to toggle the LED rather than just use
the button state to set the LED state.

Fixes #293
@ghost ghost assigned Fede85 Jan 16, 2013
Fede85 added a commit that referenced this pull request Apr 16, 2013
Fix Debounce example to work as described
@Fede85 Fede85 merged commit 97e0f34 into arduino:master Apr 16, 2013
@Fede85
Copy link
Contributor

Fede85 commented Apr 16, 2013

Thanks.

oriregev pushed a commit to oriregev/Arduino that referenced this pull request Dec 20, 2013
Fix Debounce example to work as described
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants