Test your knowledge

  1. As an effect of using a pull-up resistor with a pushbutton, we will read the following value when the pushbutton is pressed in the GPIO pin to which it is connected:
    1. A low value (0V).
    2. A high value, that is, the IOREF voltage.
    3. A value between 1V and 3.3V.
  2. As an effect of using a pull-up resistor with a pushbutton, we will read the following value when the pushbutton is released in the GPIO pin to which it is connected:
    1. A low value (0V).
    2. A high value, that is, the IOREF voltage.
    3. A value between 1V and 3.3V.
  3. If we check a pushbutton status by reading the GPIO pin value to which it is connected with polling, the loop runs every 0.5 seconds and the user keeps the pushbutton pressed for 3 seconds:
    1. The code will behave as if the pushbutton ...

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.