Digital outputs for stepper motor- using Fez mini

Hi, Can anyone guide me how to write the code for digital outputs for stepper motor. I just want to run motor clockwise and to do 4 rotations and then I want it to rotate counter clockwise and to do four anti-clockwise rotations. I am using Fez mini.

I am not using any drivers. I am using MOSFETS only.

@ Mike - I am not using EasyDriver. Instead I am using MOSFET circuit with stepper motor and FEz mini.

didn’t you ask this a week ago?
Edit: Yep,

@ Brett - It was a bit different then what I am asking now. I only need to know about digital outputs now.