From f659ae85812b258b8f12e0de0fb43d80afeed520 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Fri, 20 Nov 2015 12:08:35 +0100 Subject: Added SerialUSB alias for Serial on 32u4 boards --- variants/leonardo/pins_arduino.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/variants/leonardo/pins_arduino.h b/variants/leonardo/pins_arduino.h index 89b8806..115974e 100644 --- a/variants/leonardo/pins_arduino.h +++ b/variants/leonardo/pins_arduino.h @@ -356,4 +356,7 @@ const uint8_t PROGMEM analog_pin_to_channel_PGM[] = { #define SERIAL_PORT_HARDWARE Serial1 #define SERIAL_PORT_HARDWARE_OPEN Serial1 +// Alias SerialUSB to Serial +#define SerialUSB SERIAL_PORT_USBVIRTUAL + #endif /* Pins_Arduino_h */ -- cgit v1.2.3-18-g5258