#define Led_R 23
#define Led_G 22
#define Led_B 21
void Mudar_Cor(int Pot_R, int Pot_G, int Pot_B);
void setup() {
Serial.begin(115200);
pinMode(Led_R, OUTPUT);
pinMode(Led_G, OUTPUT);
pinMode(Led_B, OUTPUT);
}
void loop() {
Mudar_Cor(127, 200, 14);
delay(1000);
Mudar_Cor (0, 75, 210);
delay(1000);
Mudar_Cor (255, 255, 255);
delay(1000);
Mudar_Cor(0, 0, 0);
delay(1000);
}
void Mudar_Cor(int Pot_R, int Pot_G, int Pot_B){
analogWrite(Led_R, Pot_R);
analogWrite(Led_G, Pot_G);
analogWrite(Led_B, Pot_B);
}