const int R_Indicator = 2;
const int L_Indicator = 3;
const int R_LED = 4;
const int L_LED = 5;
// Variables to store the button states
int R_Indicator_State = 0;
int L_Indicator_State = 0;
void setup() {
pinMode(R_Indicator, INPUT_PULLUP);
pinMode(L_Indicator, INPUT_PULLUP);
pinMode(R_LED, OUTPUT);
pinMode(L_LED, OUTPUT);
}
void loop() {
R_Indicator_State = digitalRead(R_Indicator);
if (R_Indicator_State == LOW) {
digitalWrite(R_LED, HIGH);
} else {
digitalWrite(R_LED, LOW);
}
L_Indicator_State = digitalRead(L_Indicator);
if (L_Indicator_State == LOW) {
digitalWrite(L_LED, HIGH);
} else {
digitalWrite(L_LED, LOW);
}
}