Module implementing the device interface class for Teensy boards with MicroPython.
| None |
| TeensyDevice | Class implementing the device for Teensy boards with MicroPython. |
| _flashWithTeensyLoaderCli | Function to flash the connected teensy device via the loader cli application. |
| _startTeensyLoader | Function to start the 'Teensy Loader' application. |
| createDevice | Function to instantiate a MicroPython device object. |
| flashTeensyFirmware | Slot to flash the connected teensy device with some firmware. |
| showTeensyFlashInstructions | Slot to show a message box with instruction to flash the Teensy device. |
Class implementing the device for Teensy boards with MicroPython.
| None |
| None |
| TeensyDevice | Constructor |
| __activateUF2 | Private slot to activate the UF2 flash mode. |
| __createTeensyMenu | Private method to create the microbit submenu. |
| __firmwareVersionResponse | Private slot handling the response of the latest version request. |
| __flashMPyUF2 | Private slot to flash a MicroPython firmware to the device in UF2 mode. |
| __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. |
| forceInterrupt | Public method to determine the need for an interrupt when opening the serial connection. |
| getDocumentationUrl | Public method to get the device documentation URL. |
| getFirmwareUrl | Public method to get the device firmware download URL. |
| runScript | Public method to run the given Python script. |
| setButtons | Public method to enable the supported action buttons. |
| None |
Constructor
Private slot to activate the UF2 flash mode.
Private method to create the microbit submenu.
Private slot handling the response of the latest version request.
Private slot to flash a MicroPython firmware to the device in UF2 mode.
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 determine the need for an interrupt when opening the serial connection.
Public method to get the device documentation URL.
Public method to get the device firmware download URL.
Public method to run the given Python script.
Public method to enable the supported action buttons.
Function to flash the connected teensy device via the loader cli application.
Function to start the 'Teensy Loader' application.
Function to instantiate a MicroPython device object.
Slot to flash the connected teensy device with some firmware.
Slot to show a message box with instruction to flash the Teensy device.