X-Git-Url: http://git.piffa.net/web?p=rover;a=blobdiff_plain;f=prototypes%2Fservo%2Frotation_lib%2Frotation_lib.ino;fp=prototypes%2Fservo%2Frotation_lib%2Frotation_lib.ino;h=763e8f2d3e52aa9ce4cbed7ac5b1dbb2610acc86;hp=130d38dd1ea4e6ce67e2b71d8e1740753c292f8a;hb=00c1fa9df30a7c1b88d0c40412fd3812dd06bff3;hpb=1f18251d7103a4576a46c36b8503cd6e02b1ee1c diff --git a/prototypes/servo/rotation_lib/rotation_lib.ino b/prototypes/servo/rotation_lib/rotation_lib.ino index 130d38d..763e8f2 100644 --- a/prototypes/servo/rotation_lib/rotation_lib.ino +++ b/prototypes/servo/rotation_lib/rotation_lib.ino @@ -21,16 +21,10 @@ #include -#include +#include "Servo.h" -Servo myservo; // create servo object to control a servo // a maximum of eight servo objects can be created -// Servo vars -int pos = 0; // variable to store the servo position -const byte servo =9 ; -const byte middle = 90; // Centratura servo -const int spausa = 30; // Pausa movimenti servo void setup() {