diff --git a/libraries/Servo/examples/Knob/Knob.ino b/libraries/Servo/examples/Knob/Knob.ino index 0db8770b..fdb4e0df 100644 --- a/libraries/Servo/examples/Knob/Knob.ino +++ b/libraries/Servo/examples/Knob/Knob.ino @@ -11,11 +11,11 @@ Servo myservo; // create servo object to control a servo -int potpin = 0; // analog pin used to connect the potentiometer +int potpin = A0; // analog pin used to connect the potentiometer int val; // variable to read the value from the analog pin void setup() { - myservo.attach(9); // attaches the servo on pin 9 to the servo object + myservo.attach(A1); // attaches the servo on pin 9 to the servo object } void loop() { diff --git a/libraries/Servo/examples/Sweep/Sweep.ino b/libraries/Servo/examples/Sweep/Sweep.ino index df904afb..611197a2 100644 --- a/libraries/Servo/examples/Sweep/Sweep.ino +++ b/libraries/Servo/examples/Sweep/Sweep.ino @@ -15,7 +15,7 @@ Servo myservo; // create servo object to control a servo int pos = 0; // variable to store the servo position void setup() { - myservo.attach(9); // attaches the servo on pin 9 to the servo object + myservo.attach(A0); // attaches the servo on pin 9 to the servo object } void loop() {