I'm using the stepper base with an AtomS3 Lite and the example code linked from the docs doesn't work...
https://github.com/m5stack/M5-ProductExampleCodes/tree/master/AtomBase/Atomic_StepMotor/Atomic_StepMotor
Is my module defective?
It says the repository has been archived, are they discontinuing this module?
I tried the code stock with the correct pins set and also stripped it down to this, but the driver doesn't even appear to send power to the motor...
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
#include "StepperDriver.h"
int step_per_rev = 200;
int microstep = 1;
int pin_en = 5;
int pin_direction = 7;
int pin_step = 6;
StepperDriver ss(step_per_rev, microstep, pin_en, pin_direction, pin_step);
void setup() {
ss.setSpeed(100);
ss.powerEnable(true);
delay(1600);
}
void loop() {
ss.step(5000);
ss.step(-5000);
}