hey all, working on making sure I have everything wired properly for my stepper motor, and I just can't seem to get this example code to verify. The error message is as follows: A4988.h: no such file or directory. In addition, I am working with a DRV8825 using a Arduino UNO. Any help on how to fix the error message would be much appreciated.
#include <DRV8835MotorShield.h>
#include <Stepper.h>
#include <Arduino.h>
#include "A4988.h"
// using a 200-step motor (most common)
#define MOTOR_STEPS 200
// configure the pins connected
#define DIR 8
#define STEP 9
#define MS1 10
#define MS2 11
#define MS3 12
A4988 stepper(MOTOR_STEPS, DIR, STEP, MS1, MS2, MS3);
void setup() {
// Set target motor RPM to 1RPM and microstepping to 1 (full step mode)
stepper.begin(1, 1);
}
void loop() {
// Tell motor to rotate 360 degrees. That's it.
stepper.rotate(360);
}