Controlling H-Bridge in Max/MSP

I am trying to control an H-bridge DC motor controller using my MIDItron microcontroller. I have two digital ouput pins connected to the H-Bridge circuit, but I cannot seem to get the logic right when sending messages to my polyout objects. Anyone have any experience with the H-Bridge?