this works on Arduino Zero for the Serial1
HardwareSerial & Emic = Serial1;
But not for the SerialUSB
HardwareSerial & Terminal = SerialUSB;
It give a compilation error :
invalid initialization of reference of type 'HardwareSerial&' from expression of type 'Serial_'
Any Idea why ?
HardwareSerial & Emic = Serial1;
HardwareSerial & Terminal = SerialUSB;
void setup ()
{
Emic.begin (9600);
Terminal.begin (115200);
} // end of setup
void loop ()
{
Terminal.println ("Hi there!");
} // end of loop
Thx