Apologies in advance if this has been asked before, but I haven't been able to find anything like it. Please let me know if it has.
I'm curious about the proper/standard way to connect a SPDT switch in a digital circuit. Below are two potential configurations for connecting a high/low signal to a digital pin-- which is better? Are neither of them preferable?
I know the first can use a simple SPST instead of the switch I used; I'm more concerned with the wiring principles. Is it sensible to leave a power signal "floating", like in the bottom configuration, or does it not matter? Should a pull up/pull down resistor configuration be used instead?
Thanks a ton!