Closed armsp closed 5 years ago
@sandeepmistry for the SAMD support. I am not familiar with these boards.
This library uses the Arduino USB stack, not TinyUSB. Adafruit's video links to this example code for using WebUSB with TinyUSB.
@sandeepmistry any hint on this? So far I have tried -
50-adafruit_m0_express.rules
-
SUBSYSTEM=="usb", ATTR{idVendor}=="2341", MODE="0664", GROUP="plugdev"
plugdev
--disable-webusb-security
Still then my browser doesn't recognize my Feather M0 Express. Even the Adafruit's own examples pointed by @reillyeon don't work. All I see is this -
@armsp What is your vendorID
and productID
using lsusb
command on Ubuntu when you connect the board to your laptop?
The RGB demo calls serial.js which has a specified list of vendorID
and productID
and your board must match, else it will say No compatible devices found.
Just a hunch on why it is probably not working 😅
My vendorId
is 0x239A
and productId is 0x801B
. Does serial.js
check for both productId
and vendorId
cause the vendorId
matches with the last two values - Adafruit ItsyBitsy 32u4 - but the productId
doesn't match with anything.
It worked !! You are a rockstar @sayanee
I am on Ubuntu 18.04 with Chrome 76. I am completely new to this and have been fiddling with it for a day but I just can't get WebUSB working with my Feather M0 Express that uses SAMD21 or my nRF52840 based Arduino Nano 33 BLE. In the list of Compatible Hardware in WebUSB's Readme
Arduino MKRZero
is mentioned that has a SAMD21, so I assumed that it should work on my board too. I believe I have followed all the correct instructions in the Getting Started. Moreover there are couple of videos by Adafruit where they show WebUSB demo on boards that use SAMD21, however there just isn't more details about how they got it working - WebUSB1, WebUSB2There is a tinyUSB page AND in the Arduino IDE if you click on Tools then an option called
USB Stack
comes where you can chooseArduino
orTinyUSB
. This has been confusing me. Moreover on TinyUSB's Supported Boards they have mentioned both SAMD21 and nRF52840. This is incredibly confusing to me. And then there is a Adafruit TinyUSB Library that doesn't have much documentation and a separate core for SAMD devices. But how do I fit this information to get things working.While trying WebUSB RGB demo from Arduino IDE, I even tried changing the
USB Stack
toTinyUSB
but that made the code fail to even compile.Could you please shed some light here? I am willing to do my research and get it working, but I was hoping you could clear this hodge-podge of information that I have into something discernible.