Parcourir la source

define SERIAL_PORT_MONITOR to Serial1 when USB is disabled

main
PaulStoffregen il y a 9 ans
Parent
révision
37e24b0107
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. +4
    -0
      teensy3/pins_arduino.h

+ 4
- 0
teensy3/pins_arduino.h Voir le fichier

@@ -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

Chargement…
Annuler
Enregistrer