Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Arduino source code for KC868-A2]-04 RELAY
#1
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);
  

}


Attached Files
.zip   A2_Relay.zip (Size: 99.6 KB / Downloads: 205)
Reply


Messages In This Thread
[Arduino source code for KC868-A2]-04 RELAY - by KinCony Support - 03-02-2023, 06:54 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)