2. ESP32 GPIO Practices and Cautions

Question.6

Kevin has built the following circuit. What will be read on pin 2?

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

void loop() {
  int buttonState = digitalRead(2);
}

Select Answer