Skip to content

KeyboardButton tutorial has incorrect documentation #1631

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
HappyHeyoka opened this issue Oct 19, 2013 · 1 comment
Closed

KeyboardButton tutorial has incorrect documentation #1631

HappyHeyoka opened this issue Oct 19, 2013 · 1 comment
Labels
Component: Documentation Related to Arduino's documentation content

Comments

@HappyHeyoka
Copy link

There are some inconsistencies in the code comments and on the tutorial web page for the KeyboardButton USB Tutorial:

  • the code comments suggest pin 2 is used; in fact pin 4 is used
/*
...
 The circuit:
 * pushbutton attached from pin 2 to +5V
 * 10-kilohm resistor attached from pin 4 to ground
...
*/
const int buttonPin = 4;          // input pin for pushbutton

it should read

/*
...
 The circuit:
 * pushbutton attached from pin 4 to +5V
 * 220-kilohm resistor attached from pin 4 to ground
...
*/
  • the web page and the code suggest a 10kOhm resistor is used; the circuit diagram on the web page uses 220kOhm as does the Fritzing image.
    (Just a pull-down resistor so I'm pretty sure the value is not so important - maybe USB powered considerations were reason for increasing it?)
@shfitz shfitz closed this as completed Nov 11, 2013
@shfitz
Copy link
Contributor

shfitz commented Nov 11, 2013

Should have been a 10K resistor in the images, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Documentation Related to Arduino's documentation content
Projects
None yet
Development

No branches or pull requests

2 participants