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) |