Hi all!
Simple question, simple answer, i hope.
I'm using an Arduino Uno, and i'd like to globaly disable pullup resistors. How do I do that?
Thanks in advance.
Hi all!
Simple question, simple answer, i hope.
I'm using an Arduino Uno, and i'd like to globaly disable pullup resistors. How do I do that?
Thanks in advance.
Are you asking how to disable the internal pull-up resistors?
If you want to disable ALL internal pullups:
MCUSR |= _BV(PUD);
To enable again:
MCUSR &= ~_BV(PUD);
If they are external pullups, instead of connecting them to +5v, connect them all to one of the Arduino pins and use digitalWrite() to control them.
Guilhaz:
Hi all!Simple question, simple answer, i hope.
I'm using an Arduino Uno, and i'd like to globaly disable pullup resistors. How do I do that?Thanks in advance.
Unusual request as all input pin pull-ups are disabled at reset or power up. Any pull-ups you do enable should be easy to keep track of if you indeed need to disable them for some reason.
So why do you think you need this?
I got what I need! Thanks everyone
Guilhaz:
I got what I need! Thanks everyone
how did you do it @guilhaz?
i am having problems disabling the internal pull up resistors.
thank you
llexer:
how did you do it @guilhaz? i am having problems disabling the internal pull up resistors.
RTFM?