Skip to content

Instantly share code, notes, and snippets.

@li2hub
Created September 28, 2018 04:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save li2hub/358f5d157f8659ac3876cee7bba1099a to your computer and use it in GitHub Desktop.
Save li2hub/358f5d157f8659ac3876cee7bba1099a to your computer and use it in GitHub Desktop.
void setup() {
pinMode(D1,OUTPUT);
pinMode(D2,OUTPUT);
}
void loop() {
digitalWrite(D1,HIGH);
digitalWrite(D2,LOW);
delay(2000);
digitalWrite(D1,LOW);
digitalWrite(D2,HIGH);
delay(2000);
digitalWrite(D1,LOW);
digitalWrite(D2,LOW);
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment