View Single Post
Old 04-16-2008, 10:03 AM   #30 (permalink)
MetroMPG
Batman Junior
 
MetroMPG's Avatar
 
Join Date: Nov 2007
Location: 1000 Islands, Ontario, Canada
Posts: 21,659

Blackfly - '98 Geo Metro
Team Metro
Last 3: 70.09 mpg (US)

MPGiata - '90 Mazda Miata
90 day: 53.78 mpg (US)

Winter beater Metro - '00 Chevrolet Metro
90 day: 61.98 mpg (US)

Fancy Metro - '14 Mitsubishi Mirage top spec
90 day: 58.72 mpg (US)

Even Fancier Metro - '14 Mitsubishi Mirage top spec
90 day: 66.29 mpg (US)
Thanks: 3,405
Thanked 6,215 Times in 3,221 Posts
Quote:
Originally Posted by dcb View Post
In your code, you can use the internal pullup resistors via:
pinMode(pin, INPUT); // set pin to input
digitalWrite(pin, HIGH); // turn on pullup resistors
A little OT (and revealing my noobness on the topic)....

1) I didn't know what a pull up/down resistor was until recently.

2) This simple tutorial shows an external pull up resistor in a test button circuit. http://www.arduino.cc/en/Tutorial/Button

So ... the external resistor isn't strictly needed for that tutorial?
__________________
Latest mods: 3-cylinder Mitsubishi Mirage. EcoMods now in progress...
Ecodriving test:
Manual vs. automatic transmission MPG showdown



EcoModder
has launched a forum for the efficient new Mitsubishi Mirage
www.MetroMPG.com - fuel efficiency info for Geo Metro owners
www.ForkenSwift.com - electric car conversion on a beer budget
  Reply With Quote