Led with fade effect

Thank you very much Gweimer for this code , and thanks also for the explanations. it works perfectly with the arduino uno, but not with the nano. I tried with pins D11 D9 and D10, or, maybe I have a bad copy of a Nano for the PWM (Pulse Width Modulation) ?! introduction-to-arduino-nano-13-1|690x370