Arduino_EMBRYO_2 - Embryo()

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.

Syntax

Embryo(axisX, axisY, startPin, emergencyStopPin);

Parameters

  • axisX: an object from StepMotor class
  • axisY: an object form StepMotor class
  • startPin: Pin connected to initialization button
  • emergencyStopPin: Pin connected to emergency stop button

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() {}
void loop() {}

See also