Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Arduino source code for KC868-ASR]-02 Relay ON AND OFF
#1
Code:
#define OUT0 19
#define OUT1 5
void setup() {
  Serial.begin(115200);

  pinMode(OUT0,OUTPUT);
  pinMode(OUT1,OUTPUT);   
}

void loop() {
      digitalWrite(OUT0, HIGH);
      delay(200);
      digitalWrite(OUT1, HIGH);
      delay(200); 
      digitalWrite(OUT0,LOW);
      delay(200);
      digitalWrite(OUT1, LOW);
      delay(200);
}


Attached Files
.zip   KC868-ASR_RELAY.zip (Size: 102.81 KB / Downloads: 185)
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)