When we send a high value (1) to a GPIO pin configured as output, the GPIO pin will have:
0 V.
6 V.
The voltage specified in the position in which the IOREF jumper is located.
An instance of the mraa.Gpio class represents:
A single GPIO pin in the board.
All the I/O pins in the board.
Two GPIO pins in the board.
When we create an instance of the mraa.Gpio class, we must specify:
The pin number as an argument.
The specific board and a pin number as arguments.
The pin number and the desired direction: mraa.DIR_OUT or mraa.DIR_IN.
Which of the following lines write a high value to the GPIO pin configured as output with the instance of mraa.Gpio named gpio10:
gpio10.write(0)
gpio10.write(1)
gpio10.write(mraa.HIGH_VALUE)
Which of the following ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.