X-Git-Url: http://git.piffa.net/web?p=sketchbook_andrea;a=blobdiff_plain;f=motors%2Fservo%2FKnob_2%2FKnob_2.ino;fp=motors%2Fservo%2FKnob_2%2FKnob_2.ino;h=50fa832637e42ad0a1e9aab794ec3d8a09ec66fa;hp=33e3ad11d36a6cf9994c30dbd5a6bde94c477117;hb=7235b2bd6847d70a486c4941ed3d4fc3186d02de;hpb=0b8d3244d8d0635c329b8dc3c32743d6f6cd498e diff --git a/motors/servo/Knob_2/Knob_2.ino b/motors/servo/Knob_2/Knob_2.ino index 33e3ad1..50fa832 100644 --- a/motors/servo/Knob_2/Knob_2.ino +++ b/motors/servo/Knob_2/Knob_2.ino @@ -15,11 +15,13 @@ Schema: - https://www.arduino.cc/en/uploads/Tutorial/knob_bb.png */ +// Schema: https://lab.piffa.net/schemi/potenziometro_bb.png + #include Servo myservo; // create servo object to control a servo -int potpin = 0; // analog pin used to connect the potentiometer +const int potpin = A0; // analog pin used to connect the potentiometer int val; // variable to read the value from the analog pin void setup()