led fading
Led Fading int ledPin = 9 ; // LED connected to digital pin 9 void setup ( ) { } void loop ( ) { // fade in damin a max in incrementi di 5 unità: for ( int fadeValue = 0 ; fadeValue <= 255 ; fadeValue += 5 ) { // imposta il valore (range from 0 to 255): analogWrite ( ledPin , fadeValue ) ; // attendi per 30 millisecondi per vedere l'effetto delay ( 30 ) ; } // fade out da max a min in incrementi di 5 unità: for ( int fadeValue = 255 ; fadeValue >= 0 ; fadeValue -= 5 ) { // imposta il valore (range from 0 to 255): analogWrite ( led...