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

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