Updated adaptor to use new driver pwm write based on scaledDuty, and upd...

...ated examples to reflect the new changes.