Question: QUESTION 1: The piece of code below has a problem. What is wrong with it? import RPi GPIO as GPIO GPIO.setmode (GPIO. BOARD) GPIO.setup(2,GPIO.IN) QUESTION
QUESTION 1: The piece of code below has a problem. What is wrong with it? import RPi GPIO as GPIO GPIO.setmode (GPIO. BOARD) GPIO.setup(2,GPIO.IN) QUESTION 2: A button switch is connected at PIN #22 to detect whenever it is pressed. When the button is pressed, the voltage at PIN #22 is equal to 3.3V. Determine whether or not the code below would allow you to sense the button activity
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
