AbstractBeliefs

Untitled

May 20th, 2012
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  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.  
  8. int i = 0;
  9.  
  10. void setup() {
  11. // initialize the digital pin as an output.
  12. // Pin 13 has an LED connected on most Arduino boards:
  13. pinMode(13, OUTPUT);
  14. }
  15.  
  16. void loop() {
  17. digitalWrite(13, HIGH); // set the LED on
  18. delay(1000); // wait for a second
  19. digitalWrite(13, LOW); // set the LED off
  20. delay(1000); // wait for a second
  21. i++;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment