I have a problem with PWM.
I want to control the brightness of LED with one button and PWM. For example: when I push a button for a 3 sec.Led should be smoothly light, else when I push fast for 1 ms LED should light instantly,
maybe someone can help me??

