Smart Home Automation Forum
[Arduino source code for KC868-ASR]-01 LED ON AND OFF - 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-ASR (https://www.kincony.com/forum/forumdisplay.php?fid=42)
+--- Thread: [Arduino source code for KC868-ASR]-01 LED ON AND OFF (/showthread.php?tid=2632)



[Arduino source code for KC868-ASR]-01 LED ON AND OFF - KinCony Support - 03-02-2023

Code:
#define LED1 23
#define LED2 22

void setup() {
  Serial.begin(115200);
  pinMode(LED1,OUTPUT);
  pinMode(LED2,OUTPUT);
   
}

void loop() {

  digitalWrite(LED1, LOW);
  delay(200);
  digitalWrite(LED2, LOW);
  delay(200);
  digitalWrite(LED1, HIGH);
  delay(200);
  digitalWrite(LED2, HIGH);
  delay(200);
}