4 This example shows how to fade an LED on pin 9
5 using the analogWrite() function.
7 This example code is in the public domain.
10 byte led = 9 ; // the pin that the LED is attached to
12 byte brightness = 0; // how bright the LED is
14 // the setup routine runs once when you press reset:
16 // declare pin 9 to be an output:
20 // the loop routine runs over and over again forever:
22 // set the brightness of pin 9:
23 analogWrite(led, brightness++);