/* Blinking a LED and print to Serial Circuit Connections: PIN_2 => LED_Anode - LED_Cathode = > Resistor 220Ω => Gnd PIN_0 => Serial_RX PIN_1 => Serial_TX */ //The setup() function initializes and sets the initial values //It will only run once after each power up or reset void setup() { //Configure the PIN_2 to behave as output pinMode(2, OUTPUT); //opens serial port, sets data rate to 9600 bps Serial.begin(9600); } //loops consecutively void loop() { digitalWrite(2, HIGH); //Write a HIGH value (5V) to a digital pin Serial.println("LED is ON");//sent data delay(5000); // Pauses the program for 5000 milliseconds digitalWrite(2, LOW); //Write a LOW value (0V) to a digital pin Serial.println("LED is OFF");//sent data delay(5000); // Wait for 5000 milliseconds }