diff options
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 |