NeoSWSerial icon indicating copy to clipboard operation
NeoSWSerial copied to clipboard

Rx or Tx only?

Open MrHaroldA opened this issue 8 years ago • 6 comments

It would be nice to set up NeoSWSerial to work on a single pin. For example, I use this library to fetch debug information on a Midi-enabled device which has Midi I/O attached to the hardware serial port for the least data errors.

It would be nice if I don't have to assign two ports to NeoSWSerial, as I don't need Rx.

MrHaroldA avatar Jul 21 '17 20:07 MrHaroldA

I think I tried using an invalid pin number (e.g., 0xFF) for either pin. Have you tried that? I'll look at the code...

SlashDevin avatar Jul 23 '17 02:07 SlashDevin

I'll try it later this week. Still, if the library would supply an "invalid pin constant", or something like that ... that would be nice.

NeoSWSerial ss( 4, NEOSWSERIAL_DISABLE );

MrHaroldA avatar Jul 23 '17 11:07 MrHaroldA

Please suggest how can we define single pin only as my requirement is to transmit data from Arduino. No receive is reqd.

embsyspvtltd avatar Sep 10 '18 10:09 embsyspvtltd

Likewise a RX only version would be useful

GavinAndrews avatar Oct 07 '18 10:10 GavinAndrews

Any updates on this? Looking for RX only. Would an invalid pin work with no side effects? If I give it a pin that I already use as OUTPUT for something else but never transmit over that serial connection. Would the serial connection interfere with whatever I'm doing in that pin? Or viceversa?

caradag avatar Sep 20 '20 17:09 caradag

hello , i modify library , and it works for RX only : NeoSWSerial_RX_only My_Serial ( RX_PIN ); NeoSWSerial_RX_only.zip

nicdu40 avatar Feb 08 '21 23:02 nicdu40