Skip to content

Commit 006f630

Browse files
authored
Merge pull request #63 from per1234/analog-pin-name
Use unambiguous pin name for Knob example's analog input
2 parents a98c543 + 42f8e54 commit 006f630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/Knob/Knob.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
Servo myservo; // create servo object to control a servo
1313

14-
int potpin = 0; // analog pin used to connect the potentiometer
14+
int potpin = A0; // analog pin used to connect the potentiometer
1515
int val; // variable to read the value from the analog pin
1616

1717
void setup() {

0 commit comments

Comments
 (0)