#define blue 13
#define green 12
#define red 11
#define redbutt 6
#define bluebutt 7
#define greenbutt 8
int rbs;
int bbs;
int gbs;

void setup() {
  // put your setup code here, to run once:
pinMode(blue, OUTPUT);
pinMode(green, OUTPUT);
pinMode(red, OUTPUT);
pinMode(redbutt, INPUT_PULLUP);
pinMode(bluebutt, INPUT_PULLUP);
pinMode(greenbutt, INPUT_PULLUP);
}

void loop() {
  // put your main code here, to run repeatedly:
rbs = digitalRead(redbutt);
bbs = digitalRead(bluebutt);
gbs = digitalRead(greenbutt);

if(rbs == 0){
digitalWrite(red,1);
}
else if(bbs == 0){
  digitalWrite(blue, HIGH);
} 
else if(gbs == 0){
digitalWrite(green,1);
}
else{
digitalWrite(red,0);
digitalWrite(green,0);
digitalWrite(blue,0);
}









}
NOCOMNCVCCGNDINLED1PWRRelay Module
NOCOMNCVCCGNDINLED1PWRRelay Module
NOCOMNCVCCGNDINLED1PWRRelay Module