#define Pin_BOUTON 3
#define Led_rouge 5
#define APPUYE LOW
void setup() {
// put your setup code here, to run once:
pinMode(Pin_BOUTON, INPUT_PULLUP);
pinMode(Led_rouge, OUTPUT);
}
void loop() {
if (digitalRead(Pin_BOUTON)==APPUYE)
{
digitalWrite(Led_rouge, HIGH);
}
else
{
digitalWrite(Led_rouge, LOW);
}
}