GPIO: add PWM code for testing