const int Led_Rouge = 7 ;
const int Bouton_1 = 6 ;
int Etat_Bouton_1 ;
void setup() {
// put your setup code here, to run once:
pinMode(Led_Rouge, OUTPUT);
pinMode(Bouton_1, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
Etat_Bouton_1 = digitalRead(Bouton_1);
if(Etat_Bouton_1 == 0) {digitalWrite(Led_Rouge, HIGH);}
else digitalWrite(Led_Rouge, LOW);
}