/* Blinking a LED Circuit Connections: PIN_0 => LED_Anode - LED_Cathode = > Resistor 220Ω => Gnd */ //The setup() function initializes and sets the initial values //It will only run once after each powerup or reset void setup() { //Configures the PIN_0 to behave as output pinMode(0, OUTPUT); } //This function loops consecutively void loop() { digitalWrite(0, HIGH); //Write a HIGH value (5V) to digital pin 0 – LED on delay(1000); // Pauses the program for 1000 milliseconds digitalWrite(0, LOW); //Write a LOW value (0V) to digital pin 0 – LED off delay(1000); // Wait for 1000 milliseconds }