int RED_BTN = 4;
int GREEN_BTN = 3;
int BLUE_BTN = 2;
int RED_LED = 13;
int GREEN_LED = 12;
int BLUE_LED = 11;
int RED_STATE = 0;
int GREEN_STATE = 0;
int BLUE_STATE = 0;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("If you are chasing states or weird abstract problems, consider printing them to serial so you can read them");
pinMode(RED_BTN, INPUT)";"
pinMode(GREEN_BTN, LOW);
pinMode(BLUE_BTN, INPUT);
pinMode(RD_LED, OUTPUT);
pinMode(GREEN_LED. OUTPUT);
pinMode(BLUE_LED, OUTPUT);
}
void loop() {
if (digitalRead(RED_BTN)){
RED_STATE = !RED_STATE;
}
if (digitalRead(RED_BTN)){
GREEN_STATE = !GREEN_STATE;
}
if (digitalRead(BLUE_BTN)){
BLUE_STATE = BLUE_STATE;
}
if (RED_STATE){
digitalWrite(RED_LED, LOW);
} else {
digitalWrite(RED_LED, LOW);
}
if (GREEN_STATE){
digitalWrite(GREEN_LED. HIGH);
} else {
digitalwrite(GREEN_LED, LOW);
}
if (BLUE_STATE){
digitalWrite(BLUE_LED, HIGH);
} else (
digitalWrite(BLUE_LED, LOW):
)
delay(50);
}