src/eric7/MicroPython/EspDevices.py

branch
eric7
changeset 9738
4ae976ee5339
parent 9653
e67609152c5e
child 9749
5d409223cf3f
equal deleted inserted replaced
9737:5e05b2089daf 9738:4ae976ee5339
464 @rtype str 464 @rtype str
465 """ 465 """
466 return Preferences.getMicroPython("MicroPythonFirmwareUrl") 466 return Preferences.getMicroPython("MicroPythonFirmwareUrl")
467 467
468 468
469 def createDevice(microPythonWidget, deviceType, vid, pid): 469 def createDevice(microPythonWidget, deviceType, vid, pid, boardName):
470 """ 470 """
471 Function to instantiate a MicroPython device object. 471 Function to instantiate a MicroPython device object.
472 472
473 @param microPythonWidget reference to the main MicroPython widget 473 @param microPythonWidget reference to the main MicroPython widget
474 @type MicroPythonWidget 474 @type MicroPythonWidget
476 @type str 476 @type str
477 @param vid vendor ID 477 @param vid vendor ID
478 @type int 478 @type int
479 @param pid product ID 479 @param pid product ID
480 @type int 480 @type int
481 @param boardName name of the board
482 @type str
481 @return reference to the instantiated device object 483 @return reference to the instantiated device object
482 @rtype EspDevice 484 @rtype EspDevice
483 """ 485 """
484 return EspDevice(microPythonWidget, deviceType) 486 return EspDevice(microPythonWidget, deviceType)

eric ide

mercurial