I am trying to make my application a little more configurable.
My project consists out of a library that use SoftwareSerial. I want to be able to change the pins used by SoftwareSerial from inside my sketch. Problem is SoftwareSerial only sets its pin with its constructor.
Is there a way that I can do a "Define" in my sketch that applies it to my library that instantiates SoftwareSerial and applies my define at compile time?
Other option I have is to maybe define SoftwareSerial in my main sketch and pass SS to my library.... (Not sure how to thought) Or Change the SS library to allow for Pin change.(Don't want to move away from using standard libraries.)
Any suggestions would be appreciated, thanks.