pleasedontcode

LED Blinker rev_14

Dec 12th, 2025
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /********* Pleasedontcode.com **********
  2.  
  3.     Pleasedontcode thanks you for automatic code generation! Enjoy your code!
  4.  
  5.     - Terms and Conditions:
  6.     You have a non-exclusive, revocable, worldwide, royalty-free license
  7.     for personal and commercial use. Attribution is optional; modifications
  8.     are allowed, but you're responsible for code maintenance. We're not
  9.     liable for any loss or damage. For full terms,
  10.     please visit pleasedontcode.com/termsandconditions.
  11.  
  12.     - Project: LED Blinker
  13.     - Source Code NOT compiled for: Arduino Uno
  14.     - Source Code created on: 2025-12-12 17:23:21
  15.  
  16. ********* Pleasedontcode.com **********/
  17.  
  18. /****** SYSTEM REQUIREMENTS *****/
  19. /****** SYSTEM REQUIREMENT 1 *****/
  20.     /* blink example */
  21. /****** END SYSTEM REQUIREMENTS *****/
  22.  
  23.  
  24. /****** DEFINITION OF LIBRARIES *****/
  25.  
  26. /****** FUNCTION PROTOTYPES *****/
  27. void setup(void);
  28. void loop(void);
  29.  
  30. /****** SETUP FUNCTION *****/
  31. void setup(void)
  32. {
  33.     // Initialize the built-in LED pin as an output
  34.     pinMode(LED_BUILTIN, OUTPUT);
  35. }
  36.  
  37. /****** MAIN LOOP FUNCTION *****/
  38. void loop(void)
  39. {
  40.     // Turn the LED on (HIGH is the voltage level)
  41.     digitalWrite(LED_BUILTIN, HIGH);
  42.    
  43.     // Wait for one second
  44.     delay(1000);
  45.    
  46.     // Turn the LED off by making the voltage LOW
  47.     digitalWrite(LED_BUILTIN, LOW);
  48.    
  49.     // Wait for one second
  50.     delay(1000);
  51. }
  52.  
  53. /* END CODE */
  54.  
Advertisement
Add Comment
Please, Sign In to add comment