Skip to content

Debounce example doesn't work as described. [imported] #293

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

Closed
cmaglie opened this issue Nov 15, 2012 · 0 comments
Closed

Debounce example doesn't work as described. [imported] #293

cmaglie opened this issue Nov 15, 2012 · 0 comments

Comments

@cmaglie
Copy link
Member

cmaglie commented Nov 15, 2012

This is Issue 293 moved from a Google Code project.
Added by 2010-07-16T18:20:36.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Defect, Priority-Medium

Original description

What steps will reproduce the problem?

  1. Compile and run Examples > Digital > Debounce example included with the IDE.

What is the expected output? What do you see instead?

According to the documentation at the start of the code and on the website the LED should be toggled with each button press. Instead the LED just matches the button state.

What version of the Arduino software are you using? On what operating
system? Which Arduino board are you using?

0018
MacOS X 10.6.4
Duemilanove

Please provide any additional information below.

I'm attaching a modified version which does what the program is described to do. Feel free to use it as you please. It may need to be modified to be more readable for beginner programmers...

@Fede85 Fede85 closed this as completed in b7da415 Apr 16, 2013
oriregev pushed a commit to oriregev/Arduino that referenced this issue Dec 20, 2013
This alters the debounce example code to toggle the LED rather than just use
the button state to set the LED state.

Fixes arduino#293
tbowmo pushed a commit to tbowmo/Arduino that referenced this issue Jul 14, 2016
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

No branches or pull requests

1 participant