Arduino_EMBRYO_2 - homing()

Executes the homing procedure, but it doesn’t set the motor as ready.

Syntax

axis.homing()

Example

#include <Arduino_EMBRYO_2.h>

StepMotor axis(1, A5, 5, 6, 3, 4, A2, A1, 2, 12);

void setup() {
  Serial.begin(9600);
  while (!Serial) {};
  axis.begin();
  axis.startWithoutHoming();  // Initialize motor without homing procedure
  axis.homing();              // Run the home procedure
}
void loop() {}

See also