pleasedontcode

**LED Blink** rev_01

Mar 15th, 2026
43
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 Blink**
  13.     - Version: 001
  14.     - Source Code NOT compiled for: ESP32S3 Dev Module
  15.     - Source Code created on: 2026-03-15 10:47:45
  16.  
  17. ********* Pleasedontcode.com **********/
  18.  
  19. /****** SYSTEM REQUIREMENTS *****/
  20. /****** SYSTEM REQUIREMENT 1 *****/
  21.     /* Blink LED1 with 1000ms interval (1 second on, 1 */
  22.     /* second off). LED connected to GPIO pin. */
  23. /****** END SYSTEM REQUIREMENTS *****/
  24.  
  25.  
  26. /****** DEFINITION OF LIBRARIES *****/
  27.  
  28. /****** FUNCTION PROTOTYPES *****/
  29. void setup(void);
  30. void loop(void);
  31.  
  32. /***** DEFINITION OF DIGITAL OUTPUT PINS *****/
  33. const uint8_t LED1_LED_PIN_D1 = 1;
  34.  
  35. // Interval definition for LED blink (1000ms = 1 second on, 1 second off)
  36. const unsigned long LED_BLINK_INTERVAL = 1000;
  37.  
  38. void setup(void)
  39. {
  40.     // Initialize LED1 pin as OUTPUT
  41.     pinMode(LED1_LED_PIN_D1, OUTPUT);
  42. }
  43.  
  44. void loop(void)
  45. {
  46.     // Turn LED1 ON for 1000ms
  47.     digitalWrite(LED1_LED_PIN_D1, HIGH);
  48.     delay(LED_BLINK_INTERVAL);
  49.    
  50.     // Turn LED1 OFF for 1000ms
  51.     digitalWrite(LED1_LED_PIN_D1, LOW);
  52.     delay(LED_BLINK_INTERVAL);
  53. }
  54.  
  55. /* END CODE */
  56.  
Advertisement
Add Comment
Please, Sign In to add comment