A switch is connected on pin AO and a LED is connected on pin D4, it is required to display the switch status on the LED, the instruction is

icon
Related questions
Question
A switch is connected on pin
AO and a LED is connected on
pin D4, it is required to display
the switch status on the LED,
the instruction is
Oinput_bit(pin_D4, input(pin_A0));
Oinput_bit(pin_A0, input(pin_D4));
input_bit(pin_D4, output(pin_A0));
output_bit(pin_D4, output(pin_A0));
O output_bit(pin_D4, input(pin_A0));
Transcribed Image Text:A switch is connected on pin AO and a LED is connected on pin D4, it is required to display the switch status on the LED, the instruction is Oinput_bit(pin_D4, input(pin_A0)); Oinput_bit(pin_A0, input(pin_D4)); input_bit(pin_D4, output(pin_A0)); output_bit(pin_D4, output(pin_A0)); O output_bit(pin_D4, input(pin_A0));
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer