Using Saad Ahmad's pwm driver... Added ability to turn an output on or off.