int led = 11;
void setup(){
pinMode(led, OUTPUT);
}
void loop(){
for(int valor = 0 ; valor<= 255; valor +=8){
analogWrite(led, valor);
delay(10);
}
for(int valor = 255 ; valor>= 75; valor -=8){
analogWrite(led, valor);
delay(50);
}
for(int valor = 125 ; valor<= 15; valor -=3){
analogWrite(led, valor);
delay(10);
}
}
Nicole Rodriguez
Nicolàs Niño
Carolina Sierra
No comments:
Post a Comment