Skip to content

Disable uart TX pin but use RX #11380

Closed
Closed
@SuGlider

Description

@SuGlider

Discussed in #11372

Originally posted by handmade0octopus May 16, 2025
Hello!
Slowly moving from 2.X.X arduino (finally).

Question about uart though. Before I used .end(true) to completely detach pins as I only want to use RX part of the Serial as one of my pins is used for dual purpose at boot.

Seems like with new changes I am not able to do that and begin when passed -1 will always default to some pin.

Is there workaround for this or maybe we can get back .end(true) that will also set the pins to value to not use it at all?

Here is simple code of what I am talking about:

Serial1.begin(115200, SERIAL_8N1, ENC_B, I2C_SCL);
Serial1.end(); // before - .end(true);
Serial1.begin(115200, SERIAL_8N1, ENC_B, -1);

Thanks for all the help!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions