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