1. ESP32 GPIO Voltage and Current

Kevin has built the following circuit. What will be printed on the Serial Monitor?

#define INPUT_PIN1 15
#define INPUT_PIN2 16

void setup() {
  Serial.begin(115200);

  pinMode(INPUT_PIN1, INPUT);
  pinMode(INPUT_PIN2, INPUT);
}

void loop() {
  int state1 = digitalRead(INPUT_PIN1);
  int state2 = digitalRead(INPUT_PIN2);


  Serial.print(state1);
  Serial.print(“,”);
  Serial.println(state2);
 
}

Select Answer