Fixed PWM mode for the 5 internal PWM channels and wrote a small abstraction function to set the led brightness