Skip to content

Instantly share code, notes, and snippets.

@esthicodes
Created August 3, 2021 08:09
Show Gist options
  • Save esthicodes/d1a0acdd74f5df8221ec069f93cb10c4 to your computer and use it in GitHub Desktop.
Save esthicodes/d1a0acdd74f5df8221ec069f93cb10c4 to your computer and use it in GitHub Desktop.
arduino
#define pinLED1 D4
#define pinLED2 D7
void setup()
{
pinMode(pinLED1, OUTPUT);
pinMode(pinLED2, OUTPUT);
}
void loop()
{
digitalWrite(pinLED1, HIGH);
digitalWrite(pinLED2, LOW);
delay(1000);
digitalWrite(pinLED1, LOW);
digitalWrite(pinLED2, HIGH);
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment