Test your knowledge

  1. When we send a high value (1) to a GPIO pin configured as output, the GPIO pin will have:
    1. 0 V.
    2. 6 V.
    3. The voltage specified in the position in which the IOREF jumper is located.
  2. An instance of the mraa.Gpio class represents:
    1. A single GPIO pin in the board.
    2. All the I/O pins in the board.
    3. Two GPIO pins in the board.
  3. When we create an instance of the mraa.Gpio class, we must specify:
    1. The pin number as an argument.
    2. The specific board and a pin number as arguments.
    3. The pin number and the desired direction: mraa.DIR_OUT or mraa.DIR_IN.
  4. Which of the following lines write a high value to the GPIO pin configured as output with the instance of mraa.Gpio named gpio10:
    1. gpio10.write(0)
    2. gpio10.write(1)
    3. gpio10.write(mraa.HIGH_VALUE)
  5. Which of the following ...

Get Internet of Things with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.