Default pin states, and pinMode( <pin>, INPUT_PULLUP)


hi, i'm little confused how input_pullup used.

when atmel micro resets, pullup resistors apparently globally , individually enabled, right?

if so, assume that:

pinmode( <pin> input )
creates typical high-impedance digital input no pullup resistor, , therefore

pinmode( <pin> input_pullup )
ensures pullup resistor enabled.

please tell me if i'm wrong of above, thankyou.

matt

quote
when atmel micro resets, pullup resistors apparently globally , individually enabled, right?
on reset, pins input pullup resistors turned off.

quote
if so, assume that:

pinmode( <pin> input )
creates typical high-impedance digital input no pullup resistor, , therefore

pinmode( <pin> input_pullup )
ensures pullup resistor enabled.
yes. if use commas , semicolons, is.  8)


Arduino Forum > Using Arduino > Programming Questions > Default pin states, and pinMode( <pin>, INPUT_PULLUP)


arduino

Comments