Etape 4: Chargement de programme witharduino et relais du module
en cela, nous employons seulement arduino et module relais
J’ai 15 minin vous pouvez également modifier
arduino 1 seconde est égale à 1000
1 min est égal à 60000
Modifiez-la selon condition
<p>int timer = 900000; <br>int solid[] = { A0, A1, A2, A3 }; int pinCount = 4; </p><p>void setup() { for (int thisPin = 0; thisPin < pinCount; thisPin++) { pinMode(solid[thisPin], OUTPUT); }</p><p>for (int thisPin = 0; thisPin < pinCount; thisPin++) { digitalWrite(solid[thisPin], HIGH); delay(timer); digitalWrite(solid[thisPin], LOW);</p><p> } } void loop() { }</p>