Guest User

Untitled

a guest
Jun 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #define F_CPU 16000000L
  2. #define __OPTIMIZE__
  3. #include"wiring.h"
  4.  
  5. int main()
  6. {
  7. setup();
  8. while(true)
  9. {
  10. loop();
  11. }
  12.  
  13. }
  14. void setup()
  15. {
  16. // initialize the digital pin as an output.
  17. // Pin 13 has an LED connected on most Arduino boards:
  18. pinMode(13, OUTPUT);
  19. }
  20.  
  21. void loop()
  22. {
  23. digitalWrite(13, HIGH); // set the LED on
  24. delay(1000); // wait for a second
  25. digitalWrite(13, LOW); // set the LED off
  26. delay(1000); // wait for a second
  27.  
  28. }
Add Comment
Please, Sign In to add comment