int pinRED = 6;
int pinGREEN = 5;
int pinBLUE = 4;
void setup() {
pinMode(6, OUTPUT);
pinMode(5, OUTPUT);
pinMode(4, OUTPUT);
}
void loop() {
for(int valor = 0; valor < 255; valor++)
{
analogWrite(6, valor);
delay(10);
}
digitalWrite(6, LOW);
delay(10);
for(int valor = 0; valor < 255; valor++)
{
analogWrite(5,valor);
delay(10);
}
digitalWrite(5, LOW);
delay(10);
for(int valor = 0 ; valor < 255 ; valor++)
{
analogWrite(4,valor);
delay(10);
}
digitalWrite(4, LOW);
delay(10);
}