const int dir = 22;
const int step = 23;
void setup() {
// put your setup code here, to run once:
pinMode(dir, OUTPUT);
pinMode(step, OUTPUT);
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
digitalWrite(dir, HIGH); Serial.println("CW");
digitalWrite(step, HIGH);
delay(10);
digitalWrite(step,LOW);
delay(10);
}