Module implementing the device interface class for BBC micro:bit and Calliope mini boards.
None |
MicrobitDevice | Class implementing the device for BBC micro:bit and Calliope mini boards. |
None |
Class implementing the device for BBC micro:bit and Calliope mini boards.
None |
None |
MicrobitDevice | Constructor |
__flashMicroPython | Private slot to flash the default MicroPython firmware to the device. |
__resetDevice | Private slot to reset the connected device. |
__saveMain | Private slot to copy the current script as 'main.py' onto the connected device. |
__saveScriptToDevice | Private method to save the current script onto the connected device. |
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. |
getWorkspace | Public method to get the workspace directory. |
hasTimeCommands | Public method to check, if the device supports time commands. |
runScript | Public method to run the given Python script. |
setButtons | Public method to enable the supported action buttons. |
None |
Constructor
Private slot to flash the default MicroPython firmware to the device.
Private slot to reset the connected device.
Private slot to copy the current script as 'main.py' onto the connected device.
Private method to save the current script onto the connected device.
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 get the workspace directory.
Public method to check, if the device supports time commands.
The default returns True.
Public method to run the given Python script.
Public method to enable the supported action buttons.