//Enciende la secuencia azul-amarillo-rojo en un LED RGB de ánodo común
#define R 27
#define G 26
#define B 25
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin as an output.
pinMode(R, OUTPUT);
pinMode(G, OUTPUT);
pinMode(B, OUTPUT);
}
void loop() {
digitalWrite(R, HIGH); // turn the LED off (HIGH is the voltage level)
digitalWrite(G, HIGH); // turn the LED off (HIGH is the voltage level)
digitalWrite(B, LOW); //turn the LED on
delay(1000);
digitalWrite(R, LOW);
digitalWrite(G, LOW);
digitalWrite(B, HIGH);
delay(1000);
digitalWrite(G, HIGH);
delay(1000);
}