parent
88da9c0ae1
commit
01234592fd
@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import labhw
|
||||||
|
|
||||||
|
|
||||||
|
name = 'Arduino__www_arduino_cc__75833353035351903182'
|
||||||
|
name = sys.argv[1]
|
||||||
|
|
||||||
|
devices = labhw.list_USB_devices()
|
||||||
|
|
||||||
|
try:
|
||||||
|
print(devices[name])
|
||||||
|
except KeyError as e:
|
||||||
|
raise RuntimeError(f"unknown device {name}")
|
Loading…
Reference in new issue