PWM is better than 'sort of work' now :)
multi channel pwm implementation