4. ESP32 GPIO Voltage and Current

Question.4

Catania made the following circuit. Which of the following options is correct? (consider VDD 3.3 V)

const int readPin = 4;

void setup() {
  pinMode(readPin, INPUT);
}

void loop() {
  bool readState = digitalRead(readPin);
}

Select Answer