Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decide on VID and PID and update References #35

Open
Michael-Longley opened this issue Mar 20, 2021 · 1 comment
Open

Decide on VID and PID and update References #35

Michael-Longley opened this issue Mar 20, 2021 · 1 comment
Labels
Bug Something isn't working Controller Connection Work done on the controller connection subsystem Controller Work done on the micro controller Documentation Improvements or additions to documentation

Comments

@Michael-Longley
Copy link
Member

There are 4 key parts to this:

  • Decide what we want the VID and PID to be
  • Update the USBCode.h file to define the board as those values
  • Update ControllerConnection.py to look for those values instead of a specific COM port.
  • Document in the README.md the needed changes in USBCore.h

Details on updating the USBCore.h can be found here.

Below is some example code for connecting to a USB device in python.

device = usb.core.find(idVendor=VENDOR_ID, idProduct=PRODUCT_ID)

if device is None:
    raise ValueError('ADU Device not found. Please ensure it is connected to the tablet.')
    sys.exit(1)
@Michael-Longley Michael-Longley added Bug Something isn't working Documentation Improvements or additions to documentation Controller Work done on the micro controller Controller Connection Work done on the controller connection subsystem labels Mar 20, 2021
@Michael-Longley
Copy link
Member Author

This is where I found the example code for the USB connection.

@Michael-Longley Michael-Longley pinned this issue Mar 20, 2021
@Free-Brick-Studio Free-Brick-Studio deleted a comment from plug-it-in Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Controller Connection Work done on the controller connection subsystem Controller Work done on the micro controller Documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant