Skip to content

Commit 1da7979

Browse files
committed
Merge branch 'leonardo-usbserial' of https://github.com/cmaglie/Arduino
2 parents 4f34152 + e46375c commit 1da7979

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
@@ -19,6 +19,7 @@ ARDUINO 1.6.7
1919
* Stream: Optional lookahead and skipChar options added to parseInt and parseFloat,
2020
parseFloat also support parsing floats without a leading 0,
2121
Stream::find(char) added to SAM. Thanks @Chris--A.
22+
* Leonardo/Micro (and other atmega32u4 based boards) now have SerialUSB alias for Serial
2223

2324
ARDUINO 1.6.6 - 2015.11.03
2425

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)