int ledRouge=8;
int bouton=6;
void setup() {
// put your setup code here, to run once:
pinMode(ledRouge,OUTPUT);
pinMode(bouton,INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int etat_Bouton=digitalRead(6);
if (digitalRead(6)==1){
digitalWrite(ledRouge,HIGH);
}
else{
digitalWrite(ledRouge,LOW);
}
}