03-02-2023, 06:54 AM
(This post was last modified: 03-02-2023, 07:38 AM by KinCony Support.)
Code:
/*KC868-A2 relay output*/
#define RELAY1 2
#define RELAY2 15
void setup() {
pinMode(RELAY1, OUTPUT);
pinMode(RELAY2, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(RELAY1, HIGH);
delay(1000);
digitalWrite(RELAY1, LOW);
delay(1000);
digitalWrite(RELAY2, HIGH);
delay(1000);
digitalWrite(RELAY2, LOW);
delay(1000);
}