Extract PWM stuff into its own library