203 ) |
203 ) |
204 |
204 |
205 return super().getWorkspace() |
205 return super().getWorkspace() |
206 |
206 |
207 |
207 |
208 def createDevice(microPythonWidget, deviceType, vid, pid, boardName): |
208 def createDevice(microPythonWidget, deviceType, vid, pid, boardName, serialNumber): |
209 """ |
209 """ |
210 Function to instantiate a MicroPython device object. |
210 Function to instantiate a MicroPython device object. |
211 |
211 |
212 @param microPythonWidget reference to the main MicroPython widget |
212 @param microPythonWidget reference to the main MicroPython widget |
213 @type MicroPythonWidget |
213 @type MicroPythonWidget |
217 @type int |
217 @type int |
218 @param pid product ID |
218 @param pid product ID |
219 @type int |
219 @type int |
220 @param boardName name of the board |
220 @param boardName name of the board |
221 @type str |
221 @type str |
|
222 @param serialNumber serial number of the board |
|
223 @type str |
222 @return reference to the instantiated device object |
224 @return reference to the instantiated device object |
223 @rtype GenericMicroPythonDevice |
225 @rtype GenericMicroPythonDevice |
224 """ |
226 """ |
225 return GenericMicroPythonDevice(microPythonWidget, deviceType, vid, pid) |
227 return GenericMicroPythonDevice(microPythonWidget, deviceType, vid, pid) |