Skip to Content
Internet of Things with Python
book

Internet of Things with Python

by Gastón C. Hillar
May 2016
Intermediate to advanced content levelIntermediate to advanced
388 pages
9h 9m
English
Packt Publishing
Content preview from Internet of Things with Python

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 ...
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.
Start your free trial

You might also like

Getting Started with Python for the Internet of Things

Getting Started with Python for the Internet of Things

Tim Cox, Dr. Steven Lawrence Fernandes, Sai Yamanoor, Srihari Yamanoor, Prof. Diwakar Vaish

Publisher Resources

ISBN: 9781785881381Supplemental Content