aboutsummaryrefslogtreecommitdiff
path: root/variants/leonardo
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@arduino.cc>2015-11-24 16:34:27 +0100
committerCristian Maglie <c.maglie@arduino.cc>2015-11-24 16:34:27 +0100
commit2cc5f73b081e4c5b62c2217f62a4bd16d542ae72 (patch)
tree883cde96b41fb79ad35a8b72147eba492e448f43 /variants/leonardo
parente2c80d0389b0aaa8eedc617dd9cb9651cb46b193 (diff)
parentf659ae85812b258b8f12e0de0fb43d80afeed520 (diff)
Merge branch 'leonardo-usbserial' of https://github.com/cmaglie/Arduino
Diffstat (limited to 'variants/leonardo')
-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 */