aboutsummaryrefslogtreecommitdiff
path: root/variants/leonardo/pins_arduino.h
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@arduino.cc>2015-11-20 12:08:35 +0100
committerCristian Maglie <c.maglie@arduino.cc>2015-11-20 12:08:35 +0100
commitf659ae85812b258b8f12e0de0fb43d80afeed520 (patch)
tree821f36811b52f27bb5842300dd121f3d2c8f7ed7 /variants/leonardo/pins_arduino.h
parentb15e001b0d1b78caf3475c004d993fda58fcebef (diff)
Added SerialUSB alias for Serial on 32u4 boards
Diffstat (limited to 'variants/leonardo/pins_arduino.h')
-rw-r--r--variants/leonardo/pins_arduino.h3
1 files changed, 3 insertions, 0 deletions
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 */