Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting a new RX pin not possible #17

Open
umutcanuguz opened this issue Sep 9, 2021 · 3 comments
Open

Setting a new RX pin not possible #17

umutcanuguz opened this issue Sep 9, 2021 · 3 comments
Labels
type: enhancement Proposed improvement

Comments

@umutcanuguz
Copy link

No description provided.

@per1234 per1234 added the type: enhancement Proposed improvement label Sep 9, 2021
@PeeJay
Copy link

PeeJay commented Dec 21, 2021

Actually it is:

HardwareSerial Serial2(mbrxPin, mbtxPin);
RS485Class Rs485(Serial2, mbtxPin, dePin, rePin);

@SunboX
Copy link

SunboX commented Jan 31, 2025

Short question, why does the

void RS485Class::setPins(int txPin, int dePin, int rePin)

function only accept TX (D pin), DE and RE pins? Shouldn't there also be a RX (R pin)? And why is it named "TX" and not "D"? All RS485 transceiver I know are specifying D for"Driver data input" and R for "Receive data output".

Could someone please clearify this for me? It somehow confuses me.

@SunboX
Copy link

SunboX commented Jan 31, 2025

And second question, if I have a circuit like this:

Image

Do I have to set both, DE pin and RE pin, to GPIO2 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

4 participants