Controlling a LED intensity with Arduino and a button

Hey guys. I'm newbie in arduino. I''m tryng to make circuit intensity LED like below video.
please any expert arduino can help me, how to this programming ?



Basically, you check if the button is pressed and if it is an the brightness is not yet at max., you start a function which increases the brightness by the amount you want it to and light the LED with analogWrite(pin, brightness).

Have a look at these tutorials:

Let me know, if that helped you