Wrote motor PWM bit-banged driver