It shouldn't be that difficult. Most optocouplers have an NPN output transistor that effectively conducts when the led (input) is lit. So all you really need to do is use a pullup from the transistor.
See the example H bridge driver here...
**broken link removed**
You could effectively change all of the transistors here for NPN types with pullups, and change the drive logic so that you get the expected results from your microcontroller.