Skip to content

Instantly share code, notes, and snippets.

@toygame
Created January 29, 2018 11:50
Show Gist options
  • Save toygame/f9e91004ca89da6769aee9079889cad5 to your computer and use it in GitHub Desktop.
Save toygame/f9e91004ca89da6769aee9079889cad5 to your computer and use it in GitHub Desktop.
Test Relay 2 Channel Code
/*
Code Test Relay 2 Channel
Created by Thanapon@Arduiono2day
*/
#define IN1 3
#define IN2 4
void setup() {
pinMode(IN1, OUTPUT);
pinMode(IN2, OUTPUT);
}
void loop() {
digitalWrite(IN1, LOW);
delay(1000);
digitalWrite(IN1, HIGH);
delay(1000);
digitalWrite(IN2, LOW);
delay(1000);
digitalWrite(IN2, HIGH);
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment