webusb / arduino

WebUSB demos running on Arduino (and compatible) hardware.
580 stars 154 forks source link

Getting Started mentions hardware/arduino/avr/cores/arduino/USBCore.h when there is no such file on Github #90

Open artisticfox8 opened 3 years ago

artisticfox8 commented 3 years ago

Hello, I wanted to try out the library, so I downloaded the files as ZIP. I then started reading README and found:

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 USB_VERSION 0x200 and change 0x200 to 0x210. That's it!

However, there is no such file. When I go to the folder, I only have boads.txt and platform.txt there. I am using Linux by the way, is the step two from Getting started necessary?

jpliew commented 3 years ago

Hi @artisticfox8 , I think the wording might have confused you.

To do this go into the SDK installation directory and open hardware/arduino/avr/cores/arduino/USBCore.h

will be easier to be read as

To do this go into the ARDUINO installation directory and open hardware/arduino/avr/cores/arduino/USBCore.h

Depending on where you install the Arduino IDE, you will have to find it from your computer.

Hope this helps.

artisticfox8 commented 3 years ago

Hi @artisticfox8 , I think the wording might have confused you.

To do this go into the SDK installation directory and open hardware/arduino/avr/cores/arduino/USBCore.h

will be easier to be read as

To do this go into the ARDUINO installation directory and open hardware/arduino/avr/cores/arduino/USBCore.h

Depending on where you install the Arduino IDE, you will have to find it from your computer.

Hope this helps.

Thank you! Can you edit the page so it is more clear?