Module implementing some file system commands for MicroPython.
None |
MicroPythonDeviceInterface | Class implementing an interface to talk to a connected MicroPython device. |
None |
Class implementing an interface to talk to a connected MicroPython device.
PasteModePrompt |
TracebackMarker |
None |
MicroPythonDeviceInterface | Constructor |
__execute_paste | Private method to send commands to the connected device using 'paste' mode and return the result. |
__execute_raw | Private method to send commands to the connected device using 'raw REPL' mode and return the result. |
__pasteOff | Private method to switch 'paste' mode off. |
__pasteOn | Private method to switch the connected device to 'paste' mode. |
__rawOff | Private method to switch 'raw' mode off. |
__rawOn | Private method to switch the connected device to 'raw' mode. |
__readSerial | Private slot to read all available serial data and emit it with the "dataReceived" signal for further processing. |
connectToDevice | Public slot to start the manager. |
disconnectFromDevice | Public slot to stop the thread. |
execute | Public method to send commands to the connected device and return the result. |
executeAsync | Public method to execute a series of commands over a period of time without returning any result (asynchronous execution). |
executeAsyncPaste | Public method to execute a series of commands over a period of time without returning any result (asynchronous execution). |
handlePreferencesChanged | Public slot to handle a change of the preferences. |
isConnected | Public method to get the connection status. |
probeDevice | Public method to check the device is responding. |
write | Public method to write data to the connected device. |
None |
Constructor
Private method to send commands to the connected device using 'paste' mode and return the result.
If no serial connection is available, empty results will be returned.
Private method to send commands to the connected device using 'raw REPL' mode and return the result.
If no serial connection is available, empty results will be returned.
Private method to switch 'paste' mode off.
Private method to switch the connected device to 'paste' mode.
Note: switching to paste mode is done with synchronous writes.
Private method to switch 'raw' mode off.
Private method to switch the connected device to 'raw' mode.
Note: switching to raw mode is done with synchronous writes.
Private slot to read all available serial data and emit it with the "dataReceived" signal for further processing.
Public slot to start the manager.
Public slot to stop the thread.
Public method to send commands to the connected device and return the result.
If no serial connection is available, empty results will be returned.
Public method to execute a series of commands over a period of time without returning any result (asynchronous execution).
Public method to execute a series of commands over a period of time without returning any result (asynchronous execution).
Public slot to handle a change of the preferences.
Public method to get the connection status.
Public method to check the device is responding.
If the device has not been flashed with a MicroPython formware, the probe will fail.
Public method to write data to the connected device.