Recall & Review
beginner
What does writing HIGH to an output pin mean in embedded C?
Writing HIGH sets the output pin voltage to a high level, usually 5V or 3.3V, turning the pin ON or activating connected devices like LEDs.
Click to reveal answer
beginner
How do you write LOW to an output pin in embedded C?
You write LOW by setting the pin's output register to 0, which sets the pin voltage to 0V, turning the pin OFF or deactivating connected devices.
Click to reveal answer
beginner
Which function is commonly used to set a pin HIGH or LOW in Arduino (embedded C)?
The function digitalWrite(pin, value) is used, where value can be HIGH or LOW to set the pin voltage accordingly.Click to reveal answer
beginner
Why must a pin be set as OUTPUT before writing HIGH or LOW?
Pins default to input mode. Setting a pin as OUTPUT configures it to send voltage signals, allowing you to write HIGH or LOW to control devices.
Click to reveal answer
intermediate
What happens if you write HIGH to a pin configured as INPUT?
Writing HIGH to an INPUT pin usually enables the internal pull-up resistor, but does not drive the pin voltage high externally; the pin reads signals instead of sending them.
Click to reveal answer
What voltage level does writing HIGH to an output pin usually set?
✗ Incorrect
Writing HIGH sets the pin voltage to the board's logic high level, typically 5V or 3.3V.
Which function sets a pin as output in Arduino embedded C?
✗ Incorrect
pinMode(pin, OUTPUT) configures the pin to output mode.
What does digitalWrite(pin, LOW) do?
✗ Incorrect
digitalWrite(pin, LOW) sets the pin voltage to 0 volts.
If a pin is not set as OUTPUT, what happens when you write HIGH to it?
✗ Incorrect
Pins not set as OUTPUT do not drive voltage even if you write HIGH.
Which of these is the correct way to turn on an LED connected to pin 13?
✗ Incorrect
You must set pin 13 as OUTPUT before writing HIGH to turn on the LED.
Explain how to turn an output pin HIGH and LOW in embedded C and why setting pin mode matters.
Think about configuring the pin first, then sending voltage signals.
You got /4 concepts.
Describe what happens if you try to write HIGH to a pin that is set as INPUT.
Consider the difference between input and output pin modes.
You got /4 concepts.