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?
take a battery and plug it in the digital pin with a switch button
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16