472 self.executeCommands( |
472 self.executeCommands( |
473 "import machine\nmachine.reset()\n", mode=self._submitMode |
473 "import machine\nmachine.reset()\n", mode=self._submitMode |
474 ) |
474 ) |
475 |
475 |
476 |
476 |
477 def createDevice(microPythonWidget, deviceType, vid, pid, boardName, serialNumber): |
477 def createDevice( |
|
478 microPythonWidget, deviceType, vid, pid, boardName, serialNumber # noqa: U100 |
|
479 ): |
478 """ |
480 """ |
479 Function to instantiate a MicroPython device object. |
481 Function to instantiate a MicroPython device object. |
480 |
482 |
481 @param microPythonWidget reference to the main MicroPython widget |
483 @param microPythonWidget reference to the main MicroPython widget |
482 @type MicroPythonWidget |
484 @type MicroPythonWidget |