Advertisement
iyera20

Engineering: First Program

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