/**********************************
*Project : CoEIS Symposium – IoT contest
*Institution : DeVry University
*Example : LED
*Program Purpose: Demonstrating Digital Output
*Date created : 2024.06.11
**********************************/
#define redLED 13 // creates a macro, which associates reLED with value 13
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode(redLED, OUTPUT); //configures a digital pin as an OUtPUT
}
void loop() {
digitalWrite(redLED, HIGH); //Writes a value to the digital output
delay(1000);
digitalWrite(redLED, LOW);
delay(1000); // this speeds up the simulation
}