RGB LED flickering

I think it is explained in this video: Why I’m switching over from the awesome Arduino IDE to Atmel Studio