Android Question AndroidThings Floating Pin

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?

Thanks
FBP
 

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
 
Top