update_v0.4: PWM support