/*
==== Annotated Code ====
Author: Roberto Palozzo
========================
*/
int ledPin = 13; // Variable that set the pin no. 13 as output power for LEDs.
String deviceName = "Start-Up + Blink"; // Name given to the code
void setup()
{
Serial.begin(115200); // Initialize serial communication, so Serial.println can be used.
pinMode(ledPin, OUTPUT); // Configure ledPin as an output, so it can supply power to the LED
Serial.println(deviceName); // Start-up message using the deviceName variable
}
void loop() {
digitalWrite(ledPin, HIGH); // Turn ON the LED
Serial.println("LED: ON"); // Matches the LED turning on
delay(1000); // Keep the LED ON for 1000 ms or 1 second
digitalWrite(ledPin, LOW); // Turn OFF the LED
Serial.println("LED: OFF"); // Matches the LED turning off
delay(1000); // Keep the LED OFF for 1000 ms or 1 second
}