Smart Home Automation Forum
[Arduino source code for KC868-AP]-01 _relay_control - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-AP / ADR (https://www.kincony.com/forum/forumdisplay.php?fid=38)
+--- Thread: [Arduino source code for KC868-AP]-01 _relay_control (/showthread.php?tid=2485)



[Arduino source code for KC868-AP]-01 _relay_control - KinCony Support - 01-03-2023

 [Arduino source code for KC868-AP]-01 _relay_control
Code:
void setup() {
  pinMode(13,OUTPUT);
  pinMode(2,OUTPUT);

}

// the loop function runs over and over again forever
void loop() {


  digitalWrite(2, HIGH);
  delay(1000);
  digitalWrite(13, HIGH);
  delay(1000);
  digitalWrite(2, LOW);
  delay(1000);
  digitalWrite(13, LOW);

}