You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,7 @@ The repository is structured as followed:
91
91
*`mouse_example.py`
92
92
*`tinypico/` directory containing TinyPICO specific examples. These are mostly personal projects.
93
93
*`hid_services.py` the library.
94
+
*`hid_keystores.py` different key stores to use with the library.
94
95
*`LICENSE` the license.
95
96
*`readme.md`
96
97
@@ -135,14 +136,15 @@ The library consists of five classes with the following functions:
135
136
*`set_io_capability(io_capability)` (Set input/output capability of this device Determines the pairing procedure, e.g., accept connection/passkey entry/just works. Must be called before calling `start()`)
136
137
*`set_passkey_callback(passkey_callback)` (Set callback function for pairing events. Callback function should return boolean to accept connection or passkey depending on I/O capability used)
137
138
*`set_passkey(passkey)` (Set the passkey to use for pairing)
139
+
*`set_keystore(keystore)` (Sets the key store to use from `hid_keystores.py`. Default `JSONKeyStore`)
138
140
*`set_battery_level(level)` (Sets the battery level internally)
139
141
*`notify_battery_level()` (Notifies the central of the current battery level. Call after setting battery level)
140
142
*`notify_hid_report()` (Function for subclasses to override)
141
143
142
144
*`Joystick` (subclass of `HumanInterfaceDevice`, implements joystick service)
143
145
*`__init__(name)` (Initialize the joystick)
144
146
*`start()` (Starts the HID service using joystick characteristics. Calls `HumanInterfaceDevice.start()`)
145
-
*`write_service_characteristics(handles)` (Writes the joystick HID service characteristics. Calls `HumanInterfaceDevice.write_service_characteristics(handles)`)
147
+
*`write_service_characteristics(handles)` (Writes the joystick HID service characteristics. Calls `HumanInterfaceDevice.write_service_characteristics(handles)`)
146
148
*`notify_hid_report()` (Notifies the central of the internal HID joystick status)
147
149
*`set_axes(x, y)` (Sets the joystick axes internally)
0 commit comments