Guest User

Untitled

a guest
Feb 20th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. // Pin 13 has an LED connected on most Arduino boards.
  2. // give it a name:
  3. int led = 13;
  4.  
  5. // the setup routine runs once when you press reset:
  6. void setup() {
  7. // initialize the digital pin as an output.
  8. pinMode(led, OUTPUT);
  9. }
  10.  
  11. // the loop routine runs over and over again forever:
  12. void loop() {
  13. digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
  14. delay(1000); // wait for a second
  15. digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
  16. delay(1000); // wait for a second
  17. }
Add Comment
Please, Sign In to add comment