Module implementing the device interface class for CircuitPython boards.
None |
CircuitPythonDevice | Class implementing the device for CircuitPython boards. |
createDevice | Function to instantiate a MicroPython device object. |
Class implementing the device for CircuitPython boards.
DeviceVolumeName |
None |
CircuitPythonDevice | Constructor |
__aboutToShowLibraryMenu | Private slot to populate the 'Library Management' menu. |
__cpyVersionResponse | Private method handling the response of the latest version request. |
__createCPyMenu | Private method to create the CircuitPython submenu. |
__deviceVolumeMounted | Private method to check, if the device volume is mounted. |
__findDeviceDirectories | Private method to find the device directories associated with the current board name. |
__findWorkspace | Private method to find the workspace directory. |
__flashCircuitPython | Private slot to flash a CircuitPython firmware to a device supporting UF2. |
__installLibraryFiles | Private slot to install Python files into the onboard library. |
__showCircuitPythonVersions | Private slot to show the CircuitPython version of a connected device and the latest available one (from Github). |
__showTeensyFlashInstructions | Private method to show a message box because Teensy does not support the UF2 bootloader yet. |
__startTeensyLoader | Private method to start the 'Teensy Loader' application. |
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. |
forceInterrupt | Public method to determine the need for an interrupt when opening the serial connection. |
getDocumentationUrl | Public method to get the device documentation URL. |
getDownloadMenuEntries | Public method to retrieve the entries for the downloads menu. |
getWorkspace | Public method to get the workspace directory. |
hasFlashMenuEntry | Public method to check, if the device has its own flash menu entry. |
runScript | Public method to run the given Python script. |
setButtons | Public method to enable the supported action buttons. |
setConnected | Public method to set the connection state. |
supportsLocalFileAccess | Public method to indicate file access via a local directory. |
None |
Constructor
Private slot to populate the 'Library Management' menu.
Private method handling the response of the latest version request.
Private method to create the CircuitPython submenu.
Private method to check, if the device volume is mounted.
Private method to find the device directories associated with the current board name.
Private method to find the workspace directory.
Private slot to flash a CircuitPython firmware to a device supporting UF2.
Private slot to install Python files into the onboard library.
Private slot to show the CircuitPython version of a connected device and the latest available one (from Github).
Private method to show a message box because Teensy does not support the UF2 bootloader yet.
Private method to start the 'Teensy Loader' application.
Note: The application must be accessible via the application search path.
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 determine the need for an interrupt when opening the serial connection.
Public method to get the device documentation URL.
Public method to retrieve the entries for the downloads menu.
Public method to get the workspace directory.
Public method to check, if the device has its own flash menu entry.
Public method to run the given Python script.
Public method to enable the supported action buttons.
Public method to set the connection state.
Public method to indicate file access via a local directory.
Function to instantiate a MicroPython device object.