4. Arduino GPIO Usage and Applications

Question.3

Selena wants to turn ON the LED, which of the following circuits will turn ON the LED without damaging it? Use LED’s datasheet screenshot, which is given 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