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
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,8 @@ Devices list (MacOS)
102
102
'mains': ['code.py'],
103
103
'mount_point': '/Volumes/CIRCUITPY',
104
104
'name': 'CIRCUITPY'
105
-
}]
105
+
}],
106
+
'usb_location': '0x14630000'
106
107
}]
107
108
```
108
109
@@ -118,6 +119,23 @@ Devices list (MacOS)
118
119
### The DeviceInfoDict class
119
120
The device list is actually a list of DeviceInfoDict, a subclass of dictionary that adds a few properties as shortcuts for paths in the dictionary, with a default value of `None`.
120
121
122
+
Dictionary entries:
123
+
-**`name`**: USB name of the board (str).
124
+
-**`manufacturer`**: USB manufacturer of the board (str).
125
+
-**`product_id`**: USB Product ID (int).
126
+
-**`vendor_id`**: USB Vendor ID (int).
127
+
-**`serial_num`**: USB Serial number of the board (str).
128
+
-**`version`**: Circuitpython version, if found.
129
+
-**`ports`**: list of serial ports found on the board, dictionaries.
130
+
- **`dev`**: port device, used to connect to the port. COM port on windows, dev path on linux (str).
131
+
- **`iface`**: interface name for the serial port (str).
132
+
-**`volumes`**: list of mounted drives from the board, dictionaries.
133
+
- **`name`**: drive name, usually `CIRCUITPY` for Circuitpython or `*BOOT` for a UF2 bootloader drive (str).
134
+
- **`mount_point`**: mount path of the drive, letter on windows (str).
135
+
- **`mains`**: list of "main" files for Circuitpython (code.py etc.), by order of priority.
136
+
-**`usb_location`**: an identifier for the USB port the board is connected to, should be consistent across reboots and modes (bootloader/application).
0 commit comments