add PWM to the arduino firmware