Arduino + bigeasy driver + stepper motor

Please, someone could help me. I need to do a project in this way:
when I press 1 button, the stepper motor rotates 180 degrees, push the button again and rotates 360 degrees. tightening again and rotates -180 degrees. when tightening the fourth time, the stepper motor rotates -360 degrees and ends.
I use arduino uno, big easy driver and bipolar stepper motor

see examples in stepper library (or axelstepper library)

knut_ny:
see examples in stepper library (or axelstepper library)

axelstepper accelstepper

...R