Hi all,
I was wondering if it's possible to change the name of SerialUSB object. That way you can declare let's say
SerialUSB USB;
and you can use USB everywhere in place of SerialUSB. Your comments are appreciated.
Hi all,
I was wondering if it's possible to change the name of SerialUSB object. That way you can declare let's say
SerialUSB USB;
and you can use USB everywhere in place of SerialUSB. Your comments are appreciated.
Similarly is it possible to define somehow
Serial1 USB;
I think you're looking for preprocessor macros: http://en.wikipedia.org/wiki/C_preprocessor
#define USB SerialUSB
or
#define USB Serial1
You must log in to post.