Skip to content

Commit

Permalink
updatev103
Browse files Browse the repository at this point in the history
  • Loading branch information
vinaynmcci committed Nov 1, 2022
1 parent 62cb250 commit 0a08d9c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions cricketlib/searchswitch.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,35 @@
import sys
import serial
import serial.tools.list_ports
import time
import sys
import usb.util
from usb.backend import libusb1



VID_2101 = 0x040e
PID_2101 = 0xf413

path = sys.executable

path = path.replace("python.exe", "")

backend = None

if sys.platform == "win32":
backend = usb.backend.libusb1.get_backend(find_library=lambda x: "" +
path + "Lib\\site-packages\\libusb\\_platform\\_windows\\x64\\libusb-1.0.dll")

# Generator object
# usb_devices = usb.core.find(find_all=True, backend=backend)
usb_devices = usb.core.find(find_all=True, backend=backend)
print("usb_device:", usb_devices)

# Here attached a list of Host controlloers, list of Hub,
# List of periperals info with specific vid, pid.


def version():
return "Cricketlib v1.0.1"

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

setup(
name='cricketapi',
version='1.0.2',
version='1.0.3',
description='API for MCCI Connection exercisers',
author='MCCI Corporation',
author_email='',
Expand Down

0 comments on commit 0a08d9c

Please sign in to comment.