Instancing Motors

The Servo init constructor has the following syntax:

  myServoObject = Servo.new(myPort);

where myPort is either "A", "B" or "C". The created object makes it possible to control the motor connected to the port in parameter.

As an example, in the current TriBot.ini, three Servo objects are created :

  wheelL = Servo.new("C");
  wheelR = Servo.new("A");
  claw = Servo.new("B");

The wheel left is on port C, the wheel right on A and the claw is on port B.