So what value resistor should you choose?
The short and easy answer is that you may use a resistor value on the order of 10kOhm for the pull-up.
The short and easy answer is that you may use a resistor value on the order of 10kOhm for the pull-up.
- When the button is pressed, the input pin is pulled low. The value of the resistor controls how much current you want to flow from VCC through the resistor R1, through the button, and then to ground.
- When the button is not pressed, the input pin is pulled high. The value of the pull-up resistor controls the voltage on the input pin.
No comments:
Post a Comment