// StepperWithSwitches.ino
//
// 29 March 2022, Version 1, by Koepel, Public Domain
//
// The switches change the direction of the current throught the stepper coils.
// Can you make the stepper motor go left and right ?
void setup() {}
void loop() {}
tiny:PB5
tiny:PB3
tiny:PB4
tiny:GND
tiny:PB0
tiny:PB1
tiny:PB2
tiny:VCC
stepper1:A-
stepper1:A+
stepper1:B+
stepper1:B-
sw1:NO2
sw1:NC2
sw1:P2
sw1:COIL2
sw1:NO1
sw1:NC1
sw1:P1
sw1:COIL1
sw2:NO2
sw2:NC2
sw2:P2
sw2:COIL2
sw2:NO1
sw2:NC1
sw2:P1
sw2:COIL1
led1:A
led1:C
r1:1
r1:2
r2:1
r2:2
led2:A
led2:C
led3:A
led3:C
led4:A
led4:C
sw4:1
sw4:2
sw4:3
sw3:1
sw3:2
sw3:3