Servo Motor in function I have a project with 9 servo, I want to make a function to control each separate. Only that he is not accepting the servo as a parameter. 
Can someone tell me if it is possible to pass the servant as a parameter, and how? Thank you!! 
Example:

Servo s1,s2,s3;

void toMove(Servo obj,int inPosition, int forPosition){
var i = 0;
  for(i = inPosition; i&lt;forPosition; i++){
    obj.write(i);
  }
}

void loop(){
  if(true){
     toMove(s1,0,180);
     toMove(s2,0,180);
  }
}
Yes, it is possible, and you've done it almost right. I made a minor correction in the toMove() function ("int" instead of "var"), and supplied the setup() function which you didn't show. It compiles without error. I didn't check it for correct operation as it looks like you had reduced your code to the minimum example necessary to demonstrate your question -- and thanks for that! Here is what I compiled:

#include &lt;Servo.h&gt;

#define SERVO1      9
#define SERVO2      10


/*****&lt; External and Global Declarations &gt;*****/
Servo s1, s2;
void toMove(Servo obj, int inPosition, int forPosition);


/*****&lt; Local Function Prototypes &gt;*****/


void toMove(Servo obj,int inPosition, int forPosition){
int i = 0;
  for(i = inPosition; i&lt;forPosition; i++){
    obj.write(i);
  }
}

void setup()
{
    s1.attach(SERVO1);
    s2.attach(SERVO2);
}


void loop() {
   toMove(s1, 0, 180);
   toMove(s2, 0, 90);
}