Simulating specific USB vendor/product code

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ihab
 
Posts: 62
Joined: Tue May 17, 2016 5:20 pm

Simulating specific USB vendor/product code

Post by ihab »

Hi folks,

I would like to simulate a specific USB "volume knob" product as part of a hardware test harness. I bought an ItsyBitsy M4 Express and was hoping to use the HID support in CircuitPython. I have used the rotary knob example and it works quite well.

I then realized that the product/vendor codes are set in C code and are not configurable from Python.

What is the next most easy ;) way for me to get the behavior I want?

Ihab

User avatar
danhalbert
 
Posts: 4654
Joined: Tue Aug 08, 2017 12:37 pm

Re: Simulating specific USB vendor/product code

Post by danhalbert »

In CircuitPython 8.0.0 (now in beta), you can set the VID and PID and some strings:
https://docs.circuitpython.org/en/lates ... tification

User avatar
ihab
 
Posts: 62
Joined: Tue May 17, 2016 5:20 pm

Re: Simulating specific USB vendor/product code

Post by ihab »

Oh cool thanks! I'll try that right away!

Ihab

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”