This function creates an instance of Embryo Class to control two axis of EMBRYO 2. Use it at the top of your sketch, above setup()
and loop()
and after the two axis StepMotor instance.
Embryo(axisX, axisY, startPin, emergencyStopPin);
#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() {}
void loop() {}