usb
— USB Peripheral Management
Functions
- usb.find()
Obtain a list of currently connected USB devices. The return value is a list of 3-tuples, where each tuple is the Vendor ID, Product ID and a readable name. For example:
import usb from splashscreen import Splashscreen info = DockInfo() screen = Splashscreen() text = [ f"{vid:04x}:{pid:04x} {name}" for vid, pid, name in usb.find() ] screen.add_text_box(text)