Skip to content

Commit 03a1639

Browse files
cmaglielmihalkovic
authored andcommitted
Added SerialUSB alias for Serial on 32u4 boards
1 parent 39336d1 commit 03a1639

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
@@ -363,4 +363,7 @@ const uint8_t PROGMEM analog_pin_to_channel_PGM[] = {
363363
#define SERIAL_PORT_HARDWARE Serial1
364364
#define SERIAL_PORT_HARDWARE_OPEN Serial1
365365

366+
// Alias SerialUSB to Serial
367+
#define SerialUSB SERIAL_PORT_USBVIRTUAL
368+
366369
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)