SlashDevin / NeoSWSerial

Efficient alternative to SoftwareSerial with attachInterrupt for RX chars, simultaneous RX & TX
173 stars 42 forks source link

Rx or Tx only? #15

Open MrHaroldA opened 7 years ago

MrHaroldA commented 7 years ago

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.

SlashDevin commented 7 years ago

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...

MrHaroldA commented 7 years ago

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 );

embsyspvtltd commented 6 years ago

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

GavinAndrews commented 6 years ago

Likewise a RX only version would be useful

caradag commented 4 years ago

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?

nicdu40 commented 3 years ago

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