Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. // the setup function runs once when you press reset or power the board
  2. void setup() {
  3. // initialize digital pin 13 as an output.
  4. pinMode(13, OUTPUT);
  5. }
  6.  
  7. // the loop function runs over and over again forever
  8. void loop() {
  9. digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
  10. delay(500); // wait for a second
  11. digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
  12. delay(500); // wait for a second
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement