So firstly is my understanding correct?Secondly, is there a limit on how many INPUT_PULLUP's we can use or is it available to every digital pin?Thirdly, are there any con's in using it this way? To me saving on a resistor and the additional wiring is a massive pro, but why would one NOT use this INPUT_PULLUP and instead use INPUT with a manually inserted pulldown resistor?
So in a nutshell for anyone else who looks at this thread the following is correct for using INPUT_PULLUP?:Pro: Less physical wiringCons: 250ua (0.00125w) extra drain per button in use. Logic reversed - If (XX == HIGH) now needs to be If (XX == LOW) for the function to remain working the same)For my particular project the battery life doesn't matter as it's going to have 12v 7AH batteries as it's only a small part of a larger project but I understand for some people that battery life is critical.Thanks for the help guys, you've saved me about $0.20 in resistors and $50 in time
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