choochoo22
Active member
I am considering two new types of functionality for an existing project. Both require using serial communications in both directions over a single wire (pin). I need help in setting this up.
In one case serial3 needs to be either a rx or tx port using pin 7, the direction would be determined during setup() and would not change throughout the run. Apparently it's not as simple as: Serial3.setTX(7), so how is this done?
In the other case serial2 needs to be bi-directional using pin 10. Presumably the solution to the previous case would show how to set the direction for the same pin but are there any special considerations changing direction dynamically, like requiring a delay after a change perhaps? I believe I can handle when to switch.
In one case serial3 needs to be either a rx or tx port using pin 7, the direction would be determined during setup() and would not change throughout the run. Apparently it's not as simple as: Serial3.setTX(7), so how is this done?
In the other case serial2 needs to be bi-directional using pin 10. Presumably the solution to the previous case would show how to set the direction for the same pin but are there any special considerations changing direction dynamically, like requiring a delay after a change perhaps? I believe I can handle when to switch.