// Define Constants
// Connections to A4988
const int STEP_M1 = 3; // Step
const int DIR_M1 = 2; // Direction
// Motor steps per rotation
const int STEPS_PER_REV = 200;
//motor state
bool motorRunning;
void setup() {
Serial.begin(9600);
// Setup the pinsnand buttons
pinMode(STEP_M1,OUTPUT);
pinMode(DIR_M1,OUTPUT);
//set motor state to false
}
void loop() {
digitalWrite(STEP_M1,HIGH);
delayMicroseconds(2000);
digitalWrite(STEP_M1,LOW);
delayMicroseconds(2000);
}