Advertisement
DrAungWinHtut

twoledblink.ino

May 27th, 2022
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void setup()
  2. {
  3.     //pin 2 and 13 as output
  4.     //comments
  5.     pinMode(2,OUTPUT);
  6.     pinMode(13,OUTPUT);
  7. }
  8.  
  9. void loop()
  10. {
  11.     //LED2ON
  12.     digitalWrite(2,HIGH);
  13.     //LED13OFF
  14.     digitalWrite(13,LOW);
  15.     //pause
  16.     delay(1000);
  17.  
  18.     //LED2ON
  19.     digitalWrite(2,LOW);
  20.     //LED13OFF
  21.     digitalWrite(13,HIGH);
  22.     //pause
  23.     delay(1000);
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement