src/eric7/MicroPython/PyBoardDevices.py

branch
eric7
changeset 9738
4ae976ee5339
parent 9653
e67609152c5e
child 9749
5d409223cf3f
equal deleted inserted replaced
9737:5e05b2089daf 9738:4ae976ee5339
417 ) 417 )
418 # simulate pressing the disconnect button 418 # simulate pressing the disconnect button
419 self.microPython.on_connectButton_clicked() 419 self.microPython.on_connectButton_clicked()
420 420
421 421
422 def createDevice(microPythonWidget, deviceType, vid, pid): 422 def createDevice(microPythonWidget, deviceType, vid, pid, boardName):
423 """ 423 """
424 Function to instantiate a MicroPython device object. 424 Function to instantiate a MicroPython device object.
425 425
426 @param microPythonWidget reference to the main MicroPython widget 426 @param microPythonWidget reference to the main MicroPython widget
427 @type MicroPythonWidget 427 @type MicroPythonWidget
429 @type str 429 @type str
430 @param vid vendor ID 430 @param vid vendor ID
431 @type int 431 @type int
432 @param pid product ID 432 @param pid product ID
433 @type int 433 @type int
434 @param boardName name of the board
435 @type str
434 @return reference to the instantiated device object 436 @return reference to the instantiated device object
435 @rtype PyBoardDevice 437 @rtype PyBoardDevice
436 """ 438 """
437 return PyBoardDevice(microPythonWidget, deviceType) 439 return PyBoardDevice(microPythonWidget, deviceType)

eric ide

mercurial