I am writing a lib that takes a Serial port as argument ina function. I would like to make the library agnostic and use both USBSerial and HardwareSerial
For example if i write on a maple mini
Code: Select all
my_lib(Serial);
Code: Select all
my_lib(Serial1);
How can i write my library to use both?