I measure the current limit with a multimeter between the trim pot and gnd, i've set it to 0.85v, which by the formula of (Current Limit = VREF × 2) gets me to 1.7A
At the moment the program is just for testing the motor, has it constantly spinning.
const int stepPin = 3;
const int dirPin = 4;
void setup() {
// set the two pins as outputs
pinMode(stepPin,OUTPUT);
pinMode(dirPin,OUTPUT);
}
void loop() {
digitalWrite(stepPin,HIGH);
delayMicroseconds(800);
digitalWrite(stepPin,LOW);
delayMicroseconds(800);
}