Pages: [1]   Go Down
Author Topic: newbie: pull up resistor  (Read 383 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 11
I Love YaBB 2!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
is it possible to set a pull up resistor after defining a pin as INPUT?
Nothing about that in the tiny reference. If not, what can I do? Solder?

have fun

fritz
Logged

Forum Administrator
Offline Offline
Newbie
*****
Karma: 3
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

the current arduino language doesn't have a specific instruction to do that but I think
that using  digitalWrite(thePin,HIGH) while thePin has been defined as an INPUT should
turn on the internal 100k pull-up resistors.

give it a try...


massimo
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 11
I Love YaBB 2!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

so that's how it works at my c-control which is based on the amtel ATmega32
Logged

Pages: [1]   Go Up
Jump to: