Arduino_EMBRYO_2 - end()

Disables both axis and sets them as not ready. This function is associated with the Emergency Stop Button ISR.

Syntax

robot.end()

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.end();     // Disable Arduino EMBRYO 2
}
void loop() {}

See also