Discuss Scratch

richwhite
Scratcher
1 post

Developing an extension for Rokenboard Arduino-leonardo compatible board - Vendor/Product ID in HEX ?

I am developing an extension for a new board based off of Arduino Leonardo … How might I discover this boards vendor and product values( to covert to hexadecimal ) … This is required by ScratchX in the Javascript file ?
tenyearsafter
New to Scratch
5 posts

Developing an extension for Rokenboard Arduino-leonardo compatible board - Vendor/Product ID in HEX ?

Connect your microcontroller to your computer.

In Ubuntu (or Mac, I don't know in Windows but: https://www.reddit.com/r/computerscience/comments/58o7me/whats_the_equivalent_of_lsusb_on_windows/), open a terminal window, then type: lsusb (then press Enter).

You should get something like:

Bus 001 Device 003: ID 13d3:5188 IMC Networks

where 13d3 is the vendor and 5188 is the product.

You should probably concatenate a 0x (0x13d3, 0x5188) in your JS.

Powered by DjangoBB

Standard | Mobile