Arduino + Stepper motor + puredata

Hi, I'm working again on a stepper motor with a Rugged driver to control it with Arduino trough PureData

Now, I need to transcode in the PD language this sequence to work with TWO DIGITAL OUTPUT PINS:

D1 - D2
1 - 0 1
2 - 1 1
3 - 1 0
4 - 0 0

This is the basic sequence for a stepper motor, did someome know how can i transcode it ??

best and thanks

KinoLab