Arduino_EMBRYO_2 - play()

Enables the motor if the motor is initialized.

Syntax

axis.play()

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.start();
  delay(500);
  axis.moveSteps(50);  // Motor moves
  axis.pause();        // Disable motor
  axis.moveSteps(50);  // Motor does not move
  delay(500);
  axis.play();         // Enable motor
  axis.moveSteps(50);  // Motor moves again
}
void loop() {}

See also