arduino-libraries / Servo

Servo Library for Arduino
http://arduino.cc/
GNU Lesser General Public License v2.1
245 stars 255 forks source link

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

Closed per1234 closed 3 years ago

per1234 commented 4 years ago

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 https://github.com/arduino/Arduino/issues/8042