Detect ground closure
docwisdom
Posts: 28
I have a button that I want to detect a press between a pin and ground. I dont have the luxury of pushing 5v to the pin to detect high.
I figure using a resistor to supply 5v constant to the pin and then detect low when the pin is grounded.
Any recommendations on proper circuitry and code?
This will be a reset button that will get someone out of an error subroutine
I figure using a resistor to supply 5v constant to the pin and then detect low when the pin is grounded.
Any recommendations on proper circuitry and code?
This will be a reset button that will get someone out of an error subroutine
Comments