/*
==== Find and Fix the Bugs Set A ====
Author: Roberto Palozzo
=====================================
*/
const int LED_PIN = 13; // Variable that can't be changed set the pin no. 13 as output power for LEDs.
String deviceName = "Activities Task 5"; // Name given to the code
void setup() // FIX 1: It was "void Setup()
{
Serial.begin(115200); // Initialize serial communication, so Serial.println can be used.
pinMode(LED_PIN, OUTPUT); // FIX 2: it was LED_PIN = 9; Set the pin as output to give power to the LED.
Serial.println("Ready"); // Print "Ready" on the terminal when the code is ready to start.
}
void loop() {
digitalWrite(LED_PIN, HIGH); // Turn ON the LED
delay(500); // Keep the LED ON for 500 ms or half second
digitalWrite(LED_PIN, LOW); // Turn OFF the LED
delay(500); // Keep the LED OFF for 500 ms or half second
}