PWM signal corrupted on pin 6 but not pin 5

Well I have run that code and get no flashing at all on pin 6. The LED on Pin 6 is just dimmed.

I have no other hardware connected other than that LED.

I wonder if you actually have a power supply issue rather than a software issue.