2. Arduino GPIO Programming Basics

Question.2

Jerry wants to read the state of a button connected to pin 2 of his Arduino UNO and print "Button Pressed" when the button is pressed and print "Button Released" when the button is released on the Serial Monitor. Analyze the given circuit and determine which code should work.

Select Answer