1530 else: |
1530 else: |
1531 res = ast.literal_eval(out.decode("utf-8")) |
1531 res = ast.literal_eval(out.decode("utf-8")) |
1532 return res["result"], res["error"] |
1532 return res["result"], res["error"] |
1533 |
1533 |
1534 |
1534 |
1535 def createDevice(microPythonWidget, deviceType, vid, pid, boardName, serialNumber): |
1535 def createDevice( |
|
1536 microPythonWidget, deviceType, vid, pid, boardName, serialNumber # noqa: U100 |
|
1537 ): |
1536 """ |
1538 """ |
1537 Function to instantiate a MicroPython device object. |
1539 Function to instantiate a MicroPython device object. |
1538 |
1540 |
1539 @param microPythonWidget reference to the main MicroPython widget |
1541 @param microPythonWidget reference to the main MicroPython widget |
1540 @type MicroPythonWidget |
1542 @type MicroPythonWidget |