I am aware the teensy has a internal pull-up resistor so technically you dont need to do any thing. The pin will be held high internally and you can just short it to ground to make it read low.
But lets say the switch is on the end of a 2 meter piece of wire? Is it now best practice to add an external 10k resistor? or is it still ok just with the internal one?
Also is is best to add some sort of protection resistor (ie 220ohm) in series so people touching the pin does not hurt it? (if the button is disconnected for example)
Regards
Russell
But lets say the switch is on the end of a 2 meter piece of wire? Is it now best practice to add an external 10k resistor? or is it still ok just with the internal one?
Also is is best to add some sort of protection resistor (ie 220ohm) in series so people touching the pin does not hurt it? (if the button is disconnected for example)
Regards
Russell