webusb / arduino

WebUSB demos running on Arduino (and compatible) hardware.
566 stars 152 forks source link

Adding Teensy Support #76

Open computersarecool opened 4 years ago

computersarecool commented 4 years ago

Trying to get the Teensy board to work here.

It has full support for USB so this should work. Trying to upload the example sketch returns:

Arduino: 1.8.12 (Linux), TD: 1.51, Board: "Arduino Uno"

In file included from /home/user/Desktop/sketch_may07a/sketch_may07a.ino:1:0:
/home/user/Applications/arduino-1.8.12/libraries/WebUSB/WebUSB.h:27:26: fatal error: PluggableUSB.h: No such file or directory
compilation terminated.
Error compiling for board Teensy 3.2 / 3.1.

The Teensy author said:

edit usb_desc.c to change the 2nd port's bFunctionClass and bInterfaceClass (and maybe other fields) to whatever WebUSB needs.

Can you suggestion values for bFunctionClass and bInterfaceClass to use?

Oskar888 commented 5 months ago

anyone? I also want support for teensy