Teensy LC pull-up

Status
Not open for further replies.

notbart

Member
Gents.

Do I need to wire in a pull-up resistor for a button press, or is there a command which can be used so I can run from wire to button without a resistor.

Regards Not Bart
 
Does this hold true for the Teensy LC's D0 (which I'm using as a serial receive RX1)?

Yes, all the digital pins can do internal pullup or pulldown.

If you are using the Serial interface(s) the function Serial.Begin() will override the pin direction though. No need to specify pin direction with serial.
 
Don't want to sound picky, but it's Serial1.begin() for the hardware serial (D0/D1). Serial.begin() is for USB-serial.
 
Yes, all the digital pins can do internal pullup or pulldown.

If you are using the Serial interface(s) the function Serial.Begin() will override the pin direction though. No need to specify pin direction with serial.

Thank you for the answer.

I'm aware of the pin direction being set when used as a serial port.
It's whether the RX port was going to be left floating, or not, when D0 was being used as serial port.
ie; some unexpected behavior traps in different modes.

Some of the Teensy documentation is very outdated (refers only to Teensy 1.0 and Teensy 2.0), so I'd thought I'd check.

https://www.pjrc.com/teensy/td_digital.html
 
Follow up.

When used as a serial RX, there is no need for specifying an internal pull-up.

In my case D0 (RX1).

ie: pinMode(0, INPUT_PULLUP)

In fact, having this causes the serial RX to stop working.
 
Status
Not open for further replies.
Back
Top