Skip to content

Commit e46375c

Browse files
committed
Added SerialUSB alias for Serial on 32u4 boards
1 parent 7e9f19c commit e46375c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

build/shared/revisions.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ ARDUINO 1.6.7
1515

1616
[core]
1717
* Fixed wrong timings for HardwareSerial::flush() in SAM core. Thanks @borisff
18+
* Leonardo/Micro (and other atmega32u4 based boards) now have SerialUSB alias for Serial
1819

1920
ARDUINO 1.6.6 - 2015.11.03
2021

hardware/arduino/avr/variants/leonardo/pins_arduino.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,4 +356,7 @@ const uint8_t PROGMEM analog_pin_to_channel_PGM[] = {
356356
#define SERIAL_PORT_HARDWARE Serial1
357357
#define SERIAL_PORT_HARDWARE_OPEN Serial1
358358

359+
// Alias SerialUSB to Serial
360+
#define SerialUSB SERIAL_PORT_USBVIRTUAL
361+
359362
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)