SHARE
TWEET

2 Asynchronous Blinking LEDs

jmyean Mar 25th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const byte LedPin=9;
  2. const byte LedPin2=11;
  3.  
  4. void setup() {
  5.   pinMode(LedPin, OUTPUT);
  6.   pinMode(LedPin2, OUTPUT);
  7.   Serial.begin(9600);
  8. }
  9. void loop() {
  10.   digitalWrite(LedPin, HIGH);
  11.   digitalWrite(LedPin2, LOW);
  12.   delay(1000);
  13.   digitalWrite(LedPin, LOW);
  14.   digitalWrite(LedPin2, HIGH);
  15.   delay(1000);
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top