Module implementing the device interface class for generic MicroPython devices (i.e. those devices not specifically supported yet).
None |
GenericMicroPythonDevice | Class implementing the device interface for generic MicroPython boards. |
createDevice | Function to instantiate a MicroPython device object. |
Class implementing the device interface for generic MicroPython boards.
None |
None |
GenericMicroPythonDevice | Constructor |
__activateBootloader | Private slot to switch the board into 'bootloader' mode. |
__createGenericMenu | Private method to create the Generic submenu. |
__deviceVolumeMounted | Private method to check, if the device volume is mounted. |
__findWorkspace | Private method to find the workspace directory. |
__firmwareVersionResponse | Private slot handling the response of the latest version request. |
__resetDevice | Private slot to reset the connected device. |
__showFirmwareVersions | Private slot to show the firmware version of the connected device and the available firmware version. |
_getSetTimeCode | Protected method to get the device code to set the time. |
addDeviceMenuEntries | Public method to add device specific entries to the given menu. |
canRunScript | Public method to determine, if a script can be executed. |
canStartFileManager | Public method to determine, if a File Manager can be started. |
canStartPlotter | Public method to determine, if a Plotter can be started. |
canStartRepl | Public method to determine, if a REPL can be started. |
deviceName | Public method to get the name of the device. |
getDocumentationUrl | Public method to get the device documentation URL. |
getFirmwareUrl | Public method to get the device firmware download URL. |
getWorkspace | Public method to get the workspace directory. |
runScript | Public method to run the given Python script. |
setButtons | Public method to enable the supported action buttons. |
supportsLocalFileAccess | Public method to indicate file access via a local directory. |
None |
Constructor
Private slot to switch the board into 'bootloader' mode.
Private method to create the Generic submenu.
Private method to check, if the device volume is mounted.
Private method to find the workspace directory.
Private slot handling the response of the latest version request.
Private slot to reset the connected device.
Private slot to show the firmware version of the connected device and the available firmware version.
Protected method to get the device code to set the time.
Note: This method must be implemented in the various device specific subclasses.
Public method to add device specific entries to the given menu.
Public method to determine, if a script can be executed.
Public method to determine, if a File Manager can be started.
Public method to determine, if a Plotter can be started.
Public method to determine, if a REPL can be started.
Public method to get the name of the device.
Public method to get the device documentation URL.
Public method to get the device firmware download URL.
Public method to get the workspace directory.
Public method to run the given Python script.
Public method to enable the supported action buttons.
Public method to indicate file access via a local directory.
Function to instantiate a MicroPython device object.