You are on page 1of 2

University Institute of Engineering

Department of Computer Science & Engineering

3. Code:
/*
  Board: DOIT ESP32 DEVKIT V1
*/
#define LED 2
void setup() {
 pinMode(LED, OUTPUT); 
 }

// the loop function runs over and over again forever


void loop() {
 digitalWrite(LED, HIGH);  // turn the LED on (HIGH is the voltage level)
 //Serial.println("HIGH");
 delay(1500);            // wait for a second
 digitalWrite(LED, LOW);  // turn the LED off by making the voltage LOW
 //Serial.println("LOW");
 delay(100);            // wait for a second

  
}

5. Observations, Simulation Screen Shots and Discussions:


University Institute of Engineering
Department of Computer Science & Engineering

You might also like