File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 99This driver simulates USB HID devices.
1010
1111* Author(s): Scott Shawcroft, Dan Halbert
12-
13- Implementation Notes
14- --------------------
15- **Software and Dependencies:**
16- * Adafruit CircuitPython firmware for the supported boards:
17- https://github.com/adafruit/circuitpython/releases
1812"""
1913
2014# imports
@@ -48,12 +42,14 @@ def find_device(
4842 usage : int ,
4943 timeout : int = None ,
5044) -> object :
51- """Search through the provided sequence of devices to find the one with the matching
45+ """
46+ Search through the provided sequence of devices to find the one with the matching
5247 usage_page and usage.
5348
5449 :param timeout: Time in seconds to wait for USB to become ready before timing out.
55- Defaults to None to wait indefinitely.
56- Ignored if device is not a `usb_hid.Device`; it might be BLE, for instance."""
50+ Defaults to None to wait indefinitely.
51+ Ignored if device is not a `usb_hid.Device`; it might be BLE, for instance.
52+ """
5753
5854 if hasattr (devices , "send_report" ):
5955 devices = [devices ] # type: ignore
Original file line number Diff line number Diff line change 11
22.. If you created a package, create one automodule per module in the package.
33
4+ .. automodule :: adafruit_hid
5+ :members:
6+
47.. automodule :: adafruit_hid.keyboard
58 :members:
69
You can’t perform that action at this time.
0 commit comments