blinkSimultaneously.ino

mail@pastecode.io avatar
unknown
plain_text
2 years ago
534 B
2
Indexable
Never
blinkSimultaneously.ino
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);//D0
  pinMode(D1,OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // voltage HIGH  Led off
  digitalWrite(D1,LOW);
  delay(1000);                       // wait for a second
  
  digitalWrite(LED_BUILTIN, LOW);    // voltage LOW Led on
  digitalWrite(D1,HIGH);
  delay(1000);                       // wait for a second
  
}