Arduino_EMBRYO_2 - begin()

Configures inputs pins, outputs pins, and interruptions pins of both axis.

Syntax

robot.begin()

Example

#include <Arduino_EMBRYO_2.h>

StepMotor axisX(1, A5, 5, 6, 3, 4, A1, A2, 2, 12);
StepMotor axisY(2, A5, 10, 11, 8, 9, A3, A4, 2, 12);

Embryo robot(axisX, axisY, 2, 12);

void setup() {
  Serial.begin(9600);
  while (!Serial) {};
  robot.begin();   // Configures pins of the two axis.
}
void loop() {}

See also