Skip to content
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

Use unambiguous pin name for Knob example's analog input #63

Merged
merged 1 commit into from
Mar 29, 2021
Merged

Use unambiguous pin name for Knob example's analog input #63

merged 1 commit into from
Mar 29, 2021

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Sep 29, 2020

The previous use of "0" for the potentiometer pin can be a source of confusion because the correct connection is not to the pin on the board marked "0".

Although analogRead() supports either analog channel number or pin name, it is most user friendly to use the pin name as it is labeled on the Arduino boards.

This change is compatible with the tutorial, which shows the pin as "A0" in the schematic, and refers to it as "analog input 0" in the description.


Fixes arduino/Arduino#8042

The previous use of "0" for the potentiometer pin can be a source of confusion because the correct connection is not to the pin on the board marked "0".

Although analogRead() supports either analog channel number or pin name, it is most user friendly to use the pin name as it is labeled on the Arduino boards.

This change is compatible with the tutorial, which shows the pin as "A0" in the schematic, and refers to it as "analog input 0" in the description.
@per1234 per1234 merged commit 006f630 into arduino-libraries:master Mar 29, 2021
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.

Error on a https://www.arduino.cc/en/Tutorial/Knob
1 participant