Thanks on the code for inverse.I was actually thinking about adding a !buffer chip to invert the outputs to drive the mosfets off when the signal is off / lost.As for the pwm output i was wondering that myself I havnt seen it in there I think it had to be fixed when it changed to spi mode instead of bitbang.