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
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:yes. if use commas , semicolons, is.
pinmode( <pin> input )
creates typical high-impedance digital input no pullup resistor, , therefore
pinmode( <pin> input_pullup )
ensures pullup resistor enabled.

Arduino Forum > Using Arduino > Programming Questions > Default pin states, and pinMode( <pin>, INPUT_PULLUP)
arduino
Comments
Post a Comment