Added set pin mode when setting up new PWM GPIO outputs.