Pārlūkot izejas kodu

define SERIAL_PORT_MONITOR to Serial1 when USB is disabled

main
PaulStoffregen pirms 9 gadiem
vecāks
revīzija
37e24b0107
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. +4
    -0
      teensy3/pins_arduino.h

+ 4
- 0
teensy3/pins_arduino.h Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt