Skip to content

Commit f659ae8

Browse files
committed
Added SerialUSB alias for Serial on 32u4 boards
1 parent b15e001 commit f659ae8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

variants/leonardo/pins_arduino.h

+3
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)