Bird
0
0

What does GPIO.output(pin, GPIO.HIGH) do on a Raspberry Pi?

easy📝 Conceptual Q11 of 15
Raspberry Pi - GPIO Basics with Python
What does GPIO.output(pin, GPIO.HIGH) do on a Raspberry Pi?
AIt sets the pin mode to input.
BIt turns the specified pin ON by setting it to HIGH voltage.
CIt reads the current value from the specified pin.
DIt resets the Raspberry Pi GPIO pins.
Step-by-Step Solution
Solution:
  1. Step 1: Understand GPIO.output function

    The function GPIO.output(pin, value) sets the voltage level of the pin.
  2. Step 2: Interpret GPIO.HIGH

    GPIO.HIGH means turning the pin ON by applying a high voltage.
  3. Final Answer:

    It turns the specified pin ON by setting it to HIGH voltage. -> Option B
  4. Quick Check:

    GPIO.output with GPIO.HIGH = Pin ON [OK]
Quick Trick: HIGH means ON, LOW means OFF for GPIO pins [OK]
Common Mistakes:
  • Confusing output with input reading
  • Thinking GPIO.HIGH reads pin value
  • Assuming it sets pin mode

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes