Add SerialUSB for M0
This commit is contained in:
parent
efa966c8d6
commit
505add7a29
|
|
@ -65,6 +65,10 @@
|
|||
//*********************************************************************************************
|
||||
#define SERIAL_BAUD 115200
|
||||
|
||||
#if defined (MOTEINO_M0) && defined(SERIAL_PORT_USBVIRTUAL)
|
||||
#define Serial SERIAL_PORT_USBVIRTUAL // Required for Serial on Zero based boards
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_ATC
|
||||
RFM69_ATC radio;
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -50,9 +50,12 @@
|
|||
#define ENABLE_ATC //comment out this line to disable AUTO TRANSMISSION CONTROL
|
||||
#define ATC_RSSI -80
|
||||
//*********************************************************************************************
|
||||
|
||||
#define SERIAL_BAUD 115200
|
||||
|
||||
#if defined (MOTEINO_M0) && defined(SERIAL_PORT_USBVIRTUAL)
|
||||
#define Serial SERIAL_PORT_USBVIRTUAL // Required for Serial on Zero based boards
|
||||
#endif
|
||||
|
||||
int TRANSMITPERIOD = 200; //transmit a packet to gateway so often (in ms)
|
||||
char payload[] = "123 ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
char buff[20];
|
||||
|
|
|
|||
|
|
@ -48,6 +48,10 @@
|
|||
//*********************************************************************************************
|
||||
#define SERIAL_BAUD 115200
|
||||
|
||||
#if defined (MOTEINO_M0) && defined(SERIAL_PORT_USBVIRTUAL)
|
||||
#define Serial SERIAL_PORT_USBVIRTUAL // Required for Serial on Zero based boards
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_ATC
|
||||
RFM69_ATC radio;
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -49,6 +49,10 @@
|
|||
//*********************************************************************************************
|
||||
#define SERIAL_BAUD 115200
|
||||
|
||||
#if defined (MOTEINO_M0) && defined(SERIAL_PORT_USBVIRTUAL)
|
||||
#define Serial SERIAL_PORT_USBVIRTUAL // Required for Serial on Zero based boards
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_ATC
|
||||
RFM69_ATC radio;
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in New Issue