1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question AndroidThings Floating Pin

Discussion in 'Android Questions' started by fbritop, Apr 11, 2019.

  1. fbritop

    fbritop Active Member Licensed User

    What should be the correct hardware peripherals setup for a GPIO to read a button state (None, Pull-up, Pull-down) so there is no floating pin random values when reading the GPIOStateChange?

  2. Cableguy

    Cableguy Expert Licensed User

    If you want it to trigger upon vcc input, then pulldown, forcing pin's normal state to be gnd, if trigger by contact to ground, then pull up. If "none" then you need to implement the pull resistors yourself according to your needs
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice