Advertisement
Guest User

Untitled

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