manvi_m

First Program -- Flashing Light

Jun 6th, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. /*
  2. * Manvi Mittal
  3. * 6/6/17 Version 1
  4. * My first program
  5. */
  6.  
  7. const int pinNum = 14;
  8.  
  9. void setup()
  10. {
  11. // put your setup code here, to run once:
  12. pinMode(pinNum, OUTPUT);
  13.  
  14. digitalWrite(pinNum, HIGH);
  15. delay(50);
  16. digitalWrite(pinNum, LOW);
  17. }
  18.  
  19. void loop()
  20. {
  21. // put your main code here, to run repeatedly:
  22. digitalWrite(pinNum, HIGH);
  23. delay(500);
  24. digitalWrite(pinNum, LOW);
  25. delay(500);
  26. }
Add Comment
Please, Sign In to add comment