Flickering LED

A quick question: What's the purpose of the while loop? The second condition would always be true. The first condition may be causing problems, because even if the LED is always increasing in brightness when you push the button.
I'm not sure if i'm able to explain it that well... but if you need a better e xplanation just ask...

P.S. no question is shameful/noob-ish. We all have first times! :slight_smile: