Explorar el Código

define SERIAL_PORT_MONITOR to Serial1 when USB is disabled

teensy4-core
PaulStoffregen hace 9 años
padre
commit
37e24b0107
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. +4
    -0
      teensy3/pins_arduino.h

+ 4
- 0
teensy3/pins_arduino.h Ver fichero

@@ -167,7 +167,11 @@ static inline uint8_t digitalPinToTimer(uint8_t pin)
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
// pins are NOT connected to anything by default.
//
#if F_CPU >= 20000000 && !defined(USB_DISABLED)
#define SERIAL_PORT_MONITOR Serial
#else
#define SERIAL_PORT_MONITOR Serial1
#endif
#define SERIAL_PORT_USBVIRTUAL Serial
#define SERIAL_PORT_HARDWARE Serial1
#define SERIAL_PORT_HARDWARE1 Serial2

Cargando…
Cancelar
Guardar