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