O'Reilly logo

Internet of Things with Python by Gastón C. Hillar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required