Reuh
Voici le code.
#define TRIMPIN A0
#define RELAY1 2
#define RELAY2 3
#define IRSENSOR1 4
#define IRSENSOR2 5
byte maxWaitingDurationInSecond = 30; // 0 to 255 plage d'attente max
long waitingTime;
void setup()
{
pinMode(TRIMPIN , INPUT);
pinMode(RELAY1 , OUTPUT);
pinMode(RELAY2 , OUTPUT);
pinMode(IRSENSOR1, INPUT);
pinMode(IRSENSOR2, INPUT);
digitalWrite(RELAY1, HIGH);
digitalWrite(RELAY2, HIGH);
}
void inverseRelay(void)
{
if(digitalRead(RELAY1) == HIGH)
{
digitalWrite(RELAY1, LOW);
}
else
{