Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /********* Pleasedontcode.com **********
- Pleasedontcode thanks you for automatic code generation! Enjoy your code!
- - Terms and Conditions:
- You have a non-exclusive, revocable, worldwide, royalty-free license
- for personal and commercial use. Attribution is optional; modifications
- are allowed, but you're responsible for code maintenance. We're not
- liable for any loss or damage. For full terms,
- please visit pleasedontcode.com/termsandconditions.
- - Project: **LED Blink**
- - Version: 001
- - Source Code NOT compiled for: ESP32S3 Dev Module
- - Source Code created on: 2026-03-15 10:47:45
- ********* Pleasedontcode.com **********/
- /****** SYSTEM REQUIREMENTS *****/
- /****** SYSTEM REQUIREMENT 1 *****/
- /* Blink LED1 with 1000ms interval (1 second on, 1 */
- /* second off). LED connected to GPIO pin. */
- /****** END SYSTEM REQUIREMENTS *****/
- /****** DEFINITION OF LIBRARIES *****/
- /****** FUNCTION PROTOTYPES *****/
- void setup(void);
- void loop(void);
- /***** DEFINITION OF DIGITAL OUTPUT PINS *****/
- const uint8_t LED1_LED_PIN_D1 = 1;
- // Interval definition for LED blink (1000ms = 1 second on, 1 second off)
- const unsigned long LED_BLINK_INTERVAL = 1000;
- void setup(void)
- {
- // Initialize LED1 pin as OUTPUT
- pinMode(LED1_LED_PIN_D1, OUTPUT);
- }
- void loop(void)
- {
- // Turn LED1 ON for 1000ms
- digitalWrite(LED1_LED_PIN_D1, HIGH);
- delay(LED_BLINK_INTERVAL);
- // Turn LED1 OFF for 1000ms
- digitalWrite(LED1_LED_PIN_D1, LOW);
- delay(LED_BLINK_INTERVAL);
- }
- /* END CODE */
Advertisement
Add Comment
Please, Sign In to add comment