Pull Down Resistor

Hi,

Can anyone please tell me how to convert this image to a pull down resistor version so that it goes high when triggered rather than low?


http://http://arduino.cc/en/Tutorial/TiltSensor

Thanks and kind regards,

jB 8)

Just swap the +5V and Ground wires. The resistor then goes from the input pin to Ground and the switch goes from the input pin to +5v. When the switch is open the pin is LOW because of the resistor. When the switch closes the pin goes HIGH because it it connected to +5V.

Thank you kind Sir.

regards,

jB 8)