Skip to content
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

Officially support using the WebUSB versions of board definitions #32

Open
jpliew opened this issue May 21, 2017 · 4 comments
Open

Officially support using the WebUSB versions of board definitions #32

jpliew opened this issue May 21, 2017 · 4 comments

Comments

@jpliew
Copy link
Contributor

jpliew commented May 21, 2017

The WebUSB library provides all the extra low-level USB code necessary for WebUSB support except for one thing: Your device must be upgraded from USB 2.0 to USB 2.1. To do this go into the SDK installation directory and open hardware/arduino/avr/cores/arduino/USBCore.h. Then find the line #define v. That's it!

This change is not needed because the file webusb\avr\boards.txt in this repo has already defined the correct USB_VERSION.

Just need to add a missing instruction in README.md to copy the folder webusb to arduino\hardware folder.

@q2dg
Copy link

q2dg commented Aug 8, 2017

Maybe adding a new "WebUsb Board" into official Arduino Boards Manager could do this trick automatically?

PS: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5-3rd-party-Hardware-specification

@jpliew
Copy link
Contributor Author

jpliew commented Dec 20, 2017

@q2dg when the webusb folder from this repo is being copied to Arduino's hardware folder, the IDE will have WebUSB shown in the tools-->board section

image

Editing the original USBCore.h will interfere with other boards that are relying on the original code.

@reillyeon reillyeon changed the title USB_VERSION 0x200 and change 0x200 to 0x210 not needed Officially support using the WebUSB versions of board definitions Dec 21, 2017
@jpliew
Copy link
Contributor Author

jpliew commented Feb 10, 2018

Hi @reillyeon I wonder why you change the title of this issue to "Officially support using the WebUSB versions of board definitions"?

Officially, this library WebUSB, already support board definitions.

There is just a missing instruction to copy the files over to Arduino and does not require editing of the USBcore.h file.

So, this issue is to correct the README.md. If you are happy I can do a pull request to change the wording.

@reillyeon
Copy link
Collaborator

The necessary action on this issue is to verify that the updated board definitions correctly set USB_VERSION for all the boards listed as tested, and then update README.md.

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

No branches or pull requests

3 participants