Instructions

www.joy-it.net
Pascalstr. 8 47506 Neukirchen-Vluyn
3. SETUP WITH THE ARDUINO
Code example:
If the signal pin is set to high, the output is enabled.
In the following code example, all outputs are enabled every 10 seconds for 5 seconds.
Before uploading, make sure that you have set the correct board and port in your Arduino IDE.
void setup() {
Serial.begin(9600);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
}
void loop() {
Serial.println("Enable all outputs");
digitalWrite(3, HIGH);
digitalWrite(4, HIGH);
digitalWrite(5, HIGH);
digitalWrite(6, HIGH);
delay(5000);
Serial.println("Disable all outputs");
digitalWrite(3, LOW);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(6, LOW);
delay(5000);
}






