Arduino_EMBRYO_2 - start()

Initializes the Arduino EMBRYO 2 with two axis. Enables and starts two motors, then the motors are set as ready and does the homing procedure of both of them. This function is associated with the Start Button ISR.

Syntax

robot.start()

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();   // Initializes two axis and configures interruptions pins
  robot.start();   // Enable the axis and does the homing procedure
}
void loop() {}

See also