Skip to content

Add support for boards with different name of serial USB connection #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 20, 2018

Conversation

stlehmann
Copy link
Contributor

I discovered that I couldn't use this library for the Adafruit Feather M0 which is a SAMD21 board. The reason was that the USB connection is named Serial1 and not SerialUSB as for the Arduino Zero. I figured it would be best to use the SERIAL_PORT_USBVIRTUAL define that is set in the board files. This way the library automatically uses the correct port.

stlehmann and others added 2 commits July 22, 2018 11:25
USBSerial does not exist for Adafruit Feather M0
Support boards where USB serial is named differently. E.g. the
Adafruit Feather M0 uses Serial1 as name for serial USB port.
@facchinm facchinm merged commit b38a5bc into arduino-libraries:master Aug 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants