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
HIGH when the button is not pressed, and LOW when the button is pressed.
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.