src/eric7/MicroPython/MicrobitDevices.py

branch
eric7
changeset 9496
05017f795c24
parent 9473
3f23dbf37dbe
child 9576
be9f8e7e42e0
equal deleted inserted replaced
9495:28ab5f487f71 9496:05017f795c24
432 ( 432 (
433 self.tr("DAPLink Firmware"), 433 self.tr("DAPLink Firmware"),
434 Preferences.getMicroPython("CalliopeDAPLinkUrl"), 434 Preferences.getMicroPython("CalliopeDAPLinkUrl"),
435 ), 435 ),
436 ] 436 ]
437
438
439 def createDevice(microPythonWidget, deviceType, vid, pid):
440 """
441 Function to instantiate a MicroPython device object.
442
443 @param microPythonWidget reference to the main MicroPython widget
444 @type MicroPythonWidget
445 @param deviceType device type assigned to this device interface
446 @type str
447 @param vid vendor ID
448 @type int
449 @param pid product ID
450 @type int
451 @return reference to the instantiated device object
452 @rtype MicrobitDevice
453 """
454 return MicrobitDevice(microPythonWidget, deviceType)

eric ide

mercurial