SHARE
TWEET

Atom32 First Run

AtomSoft Aug 24th, 2014 234 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  Blink
  3.  Turns on an LED on for one second, then off for one second, repeatedly.
  4.  
  5.  This example code is in the public domain.
  6.  */
  7. #define LED1 38
  8. #define LED2 39
  9. #define LED3 40
  10. void setup() {
  11.  // initialize the digital pin as an output.
  12.  // Pin PIN_LED1 has an LED connected on most Arduino and compatible boards:
  13.  pinMode(LED1, OUTPUT);
  14.  pinMode(LED2, OUTPUT);
  15.  pinMode(LED3, OUTPUT);
  16. }
  17. void loop() {
  18.  digitalWrite(LED2, LOW); // set the LED on
  19.  digitalWrite(LED3, LOW); // set the LED on
  20.  digitalWrite(LED1, HIGH); // set the LED on
  21.  delay(500); // wait for a second
  22.  digitalWrite(LED1, LOW); // set the LED off
  23.  digitalWrite(LED2, HIGH); // set the LED on
  24.  delay(500); // wait for a second
  25.  digitalWrite(LED2, LOW); // set the LED off
  26.  digitalWrite(LED3, HIGH); // set the LED on
  27.  delay(500);
  28.  digitalWrite(LED3, LOW); // set the LED off
  29.  digitalWrite(LED2, HIGH); // set the LED on
  30.  delay(500);
  31. }
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