src/eric7/MicroPython/EspDevices.py

branch
eric7
changeset 9496
05017f795c24
parent 9473
3f23dbf37dbe
child 9573
9960d19d66b5
equal deleted inserted replaced
9495:28ab5f487f71 9496:05017f795c24
461 461
462 @return firmware download URL of the device 462 @return firmware download URL of the device
463 @rtype str 463 @rtype str
464 """ 464 """
465 return Preferences.getMicroPython("MicroPythonFirmwareUrl") 465 return Preferences.getMicroPython("MicroPythonFirmwareUrl")
466
467
468 def createDevice(microPythonWidget, deviceType, vid, pid):
469 """
470 Function to instantiate a MicroPython device object.
471
472 @param microPythonWidget reference to the main MicroPython widget
473 @type MicroPythonWidget
474 @param deviceType device type assigned to this device interface
475 @type str
476 @param vid vendor ID
477 @type int
478 @param pid product ID
479 @type int
480 @return reference to the instantiated device object
481 @rtype EspDevice
482 """
483 return EspDevice(microPythonWidget, deviceType)

eric ide

mercurial