Which GPIO Pin mode saves more power? #2203
Unanswered
espruino-discuss
asked this question in
Puck.js, Pixl.js, Jolt.js and MDBT42
Replies: 1 comment
-
Posted at 2017-05-05 by @gfwilliams What you're suggesting sounds fine and shouldn't draw much power. All GPIO pins should be about the same. The only problem is if your switch is 'normally closed' rather that the usual 'normally open' type (which could cause the pulldown resistor to be drawing power all the time) - but that is very unlikely |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-05-05 by intern
Hi there,
I am planning to use the Puck's GPIO pin to detect if a switch is open (it will be closed most of the time), however I was wondering if the GPIO pin mode will affect the battery drain? My original idea is to connect the switch to both a GPIO pin (as input, pull down) and the 3V pin. But is there a better design that will save more power?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions