PaulStoffregen / AltSoftSerial

Software emulated serial using hardware timers for improved compatibility
http://www.pjrc.com/teensy/td_libs_AltSoftSerial.html
338 stars 132 forks source link

Multiple instances of AltSoftwareSerial #14

Closed pramilo closed 9 years ago

pramilo commented 9 years ago

Hi

First of all, congratulations on the excellent work you're carrying out both in terms of code and development of Teensy!

I have a requirement for multiple SoftwareSerial instances on an application and having reviewed the AltSoftSerial code, is there any reason why you have locked the pins? (and to some extent ,the timers)?

There doesn't seem to be any particular reason to not allow multiple instances, which would be great given the library's improved performance.

Even just making it as easy to change the Pins as it is for the timers, I think this'd be a great addition.

Another very useful addition would be the possibility to:

I believe all of this can be easily implemented and, again, would make for excellent additions (the first and most important being multiple instances).

For the time being I'll stick with NewSoftSerial although I'd rather use AltSoftSerial due to it's better co existence with other code.

Thank you Pedro

PaulStoffregen commented 9 years ago

I believe all of this can be easily implemented

Then go forth and implement it!