src/eric7/MicroPython/GenericMicroPythonDevices.py

branch
eric7
changeset 9738
4ae976ee5339
parent 9653
e67609152c5e
child 9751
606ac0e26533
equal deleted inserted replaced
9737:5e05b2089daf 9738:4ae976ee5339
203 ) 203 )
204 204
205 return super().getWorkspace() 205 return super().getWorkspace()
206 206
207 207
208 def createDevice(microPythonWidget, deviceType, vid, pid): 208 def createDevice(microPythonWidget, deviceType, vid, pid, boardName):
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
215 @type str 215 @type str
216 @param vid vendor ID 216 @param vid vendor ID
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
221 @type str
220 @return reference to the instantiated device object 222 @return reference to the instantiated device object
221 @rtype GenericMicroPythonDevice 223 @rtype GenericMicroPythonDevice
222 """ 224 """
223 return GenericMicroPythonDevice(microPythonWidget, deviceType, vid, pid) 225 return GenericMicroPythonDevice(microPythonWidget, deviceType, vid, pid)

eric ide

mercurial