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
Logic HIGH when the button is not pressed, and LOW when the button is pressed.
Logic LOW when the button is not pressed, and HIGH when the button is pressed.
The pin will be floating when the button is not pressed and LOW after the button is pressed.
The pin will always read LOW, regardless of the button state.