diff options
author | Joshua Liu <joshua.liu@sourceobby.com> | 2025-05-18 22:59:06 -0400 |
---|---|---|
committer | Joshua Liu <joshua.liu@sourceobby.com> | 2025-05-18 22:59:06 -0400 |
commit | c56742e26dbf9c0f12fe78e22f551288dbfb5896 (patch) | |
tree | 91266aa3e8f83e93bb0bc197e93a8b4e2b822f85 /annotated_example.py | |
parent | cac829ec5a622a2d61ef3f54224314d04f7eff92 (diff) |
feat: corrected a typo'
Diffstat (limited to 'annotated_example.py')
-rw-r--r-- | annotated_example.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/annotated_example.py b/annotated_example.py index 98d77b1..b7f0aca 100644 --- a/annotated_example.py +++ b/annotated_example.py @@ -117,7 +117,7 @@ def key_change_callback(deck, key, state): if __name__ == "__main__": """ Breakdown of the line below: - What this does is it goes into DeviceManager.py, creates a giant list of all of the possible devices that it may connect to, thenuse the enumerate() method provided by hidapi to check if there is a device with said ids connected to the machine. We receive essentially a list of tuples. The first item is the index, the next is an OBJECT representing the StreamDeck (not directly interacting with the stuff) + What this does is it goes into DeviceManager.py, creates a giant list of all of the possible devices that it may connect to, then use the enumerate() method provided by hidapi to check if there is a device with said ids connected to the machine. We receive essentially a list of tuples. The first item is the index, the next is an OBJECT representing the StreamDeck (not directly interacting with the stuff) """ streamdecks = DeviceManager().enumerate() # So this is a list of Stream Deck objects |