/********* 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: T
- Source Code compiled for: Arduino Nano
- Source Code created on: 2023-10-22 05:45:32
- Source Code generated by: Muhammad Baqir
********* Pleasedontcode.com **********/
/****** DEFINITION OF LIBRARIES *****/
#include
/****** SYSTEM REQUIREMENT 1: Blink LED on pin D2 *****/
const uint8_t LED_PIN_D2 = 2;
/****** SYSTEM REQUIREMENT 2: Blink LED on pin D3 *****/
const uint8_t LED_PIN_D3 = 3;
/****** FUNCTION PROTOTYPES *****/
void setup(void);
void loop(void);
void setup(void)
{
// Set LED pins as outputs
pinMode(LED_PIN_D2, OUTPUT);
pinMode(LED_PIN_D3, OUTPUT);
}
void loop(void)
{
// Blink LED on pin D2
digitalWrite(LED_PIN_D2, HIGH); // Turn on LED
delay(500); // Wait for 500 milliseconds
digitalWrite(LED_PIN_D2, LOW); // Turn off LED
delay(500); // Wait for 500 milliseconds
// Blink LED on pin D3
digitalWrite(LED_PIN_D3, HIGH); // Turn on LED
delay(500); // Wait for 500 milliseconds
digitalWrite(LED_PIN_D3, LOW); // Turn off LED
delay(500); // Wait for 500 milliseconds
}