const int pinR = 6;
const int pinG = 5; //analog pin
const int pinB = 3;
void setup() {
pinMode(pinR , OUTPUT);
pinMode(pinG , OUTPUT);
pinMode(pinB , OUTPUT);
}
void loop() {
RGBcolor(77, 0, 0);
RGBcolor(133, 255, 251);
RGBcolor(255, 133, 133);
}
void RGBcolor(int R , int G , int B){
analogWrite(pinR , R);
analogWrite(pinG , G);
analogWrite(pinB , B);
delay(1000);
}