Hi.
It's a very simple and basic question:
Why shouldn't I use a direct connection from 5v pin to an input digital pin, and separetelly only by a switch, instead of adding a resistor and connect to ground that circuit?
I mean, the general suggested circuit to use with a switch is very simple, but I can't understand why don't use a even much more simple em direct approach like, for example, take a battery and plug it in the digital pin with a switch button (and of course plug the negative of the battery in the ground of the Arduino).
I don't know how stupid could be this question, but I've got different answers for some people and I feel here's the best place to get the right answer.
Thanks!
[]s
Alex