2. Arduino GPIO Programming Basics

Question.8

Kevin has built the following circuit. What LOGIC level will be detected on GPIO pin 2?

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

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

Select Answer