1
TinyDuino Processors & TinyShields / Re: TinyZero Serial Port Communication
« on: January 28, 2020, 12:48:01 AM »
Solved... use the SerialMonitorMacro:
#if defined(ARDUINO_ARCH_SAMD)
#define SerialMonitorInterface SerialUSB
#else
#define SerialMonitorInterface Serial
#endif
/**
* Set up the IO and serial port
*/
void setup() {
SerialMonitorInterface.begin(BAUD_RATE_115200);
...
#if defined(ARDUINO_ARCH_SAMD)
#define SerialMonitorInterface SerialUSB
#else
#define SerialMonitorInterface Serial
#endif
/**
* Set up the IO and serial port
*/
void setup() {
SerialMonitorInterface.begin(BAUD_RATE_115200);
...