src/eric7/MicroPython/GenericMicroPythonDevices.py

branch
eric7
changeset 9751
606ac0e26533
parent 9738
4ae976ee5339
equal deleted inserted replaced
9750:4958dd72c937 9751:606ac0e26533
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)

eric ide

mercurial