Bird
0
0

What is the main purpose of setting a GPIO pin as output when controlling a single LED on a Raspberry Pi?

easy📝 Conceptual Q11 of 15
Raspberry Pi - LED and Button Projects
What is the main purpose of setting a GPIO pin as output when controlling a single LED on a Raspberry Pi?
ATo send signals that turn the LED on or off
BTo read the LED's brightness level
CTo connect the LED to the internet
DTo power the Raspberry Pi itself
Step-by-Step Solution
Solution:
  1. Step 1: Understand GPIO pin modes

    GPIO pins can be set as input or output. Output pins send signals to devices like LEDs.
  2. Step 2: Purpose of output mode for LED

    Setting a pin as output allows the Raspberry Pi to send HIGH or LOW signals to turn the LED on or off.
  3. Final Answer:

    To send signals that turn the LED on or off -> Option A
  4. Quick Check:

    Output mode controls LED state [OK]
Quick Trick: Output pins send signals to control devices like LEDs [OK]
Common Mistakes:
  • Confusing input with output mode
  • Thinking GPIO controls power supply
  • Assuming GPIO reads LED brightness

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes