2. ESP32 GPIO Practices and Cautions

Question.4

Selena wants to make LED Glow, which of the following circuits will glow the LED without damaging it? Use below LED datasheet below for reference. (consider 1.8V as the drop-down voltage of LED)

#define GPIO 4

void setup() {
  pinMode(GPIO, OUTPUT);
  digitalWrite(GPIO, LOW);
}

void loop() {
}

Select Answer