Added calls to pwm and more pwm skeleton.

pwm will be called very often so in the event that it uses a non-100%
duty cycle, it should check whether it's been on/off long enough (since
it cannot block the rest of the program, as the stop button needs to
always work)