Adds PWM support and update the raspi adaptor.