Arduino_EMBRYO_2 - setLengthXY()

Sets the length of bth of the robot axis in centimeters.

Syntax

robot.setLength(lengthX, lengthY)

Parameters

  • lengthX: the maximum length of the X-axis in centimeters.
  • lengthY: the maximum length of the Y-axis in centimeters.

Example

#include <Arduino_EMBRYO_2.h>

StepMotor axis(1, A5, 5, 6, 3, 4, A2, A1, 2, 12);

void setup() {
  Serial.begin(9600);
  while (!Serial) {};
  robot.setLenght(45, 25);
}
void loop() {}

See also