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 9
9
This driver simulates USB HID devices.
10
10
11
11
* 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
18
12
"""
19
13
20
14
# imports
@@ -48,12 +42,14 @@ def find_device(
48
42
usage : int ,
49
43
timeout : int = None ,
50
44
) -> 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
52
47
usage_page and usage.
53
48
54
49
: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
+ """
57
53
58
54
if hasattr (devices , "send_report" ):
59
55
devices = [devices ] # type: ignore
Original file line number Diff line number Diff line change 1
1
2
2
.. If you created a package, create one automodule per module in the package.
3
3
4
+ .. automodule :: adafruit_hid
5
+ :members:
6
+
4
7
.. automodule :: adafruit_hid.keyboard
5
8
:members:
6
9
You can’t perform that action at this time.
0 commit comments