Adding support for invertPWM

Necessary for motor controllers that do not invert PWM value on
h-bridge when digital pin is set to high.