Module implementing the device interface class for NRF52 boards with UF2 support.
None |
Nrf52Device | Class implementing the device for NRF52 boards with UF2 support. |
createDevice | Function to instantiate a MicroPython device object. |
Class implementing the device for NRF52 boards with UF2 support.
None |
None |
Nrf52Device | Constructor |
__activateBootloader | Private slot to switch the board into 'bootloader' mode. |
__createNrfMenu | Private method to create the NRF52 submenu. |
__firmwareVersionResponse | Private slot handling the response of the latest version request. |
__flashPython | Private slot to flash a MicroPython firmware to the device. |
__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. |
activateBluetoothInterface | Public method to activate the Bluetooth interface. |
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. |
deactivateBluetoothInterface | Public method to deactivate the Bluetooth interface. |
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. |
getBluetoothStatus | Public method to get Bluetooth status data of the connected board. |
getDeviceScan | Public method to perform a Bluetooth device scan. |
getDocumentationUrl | Public method to get the device documentation URL. |
getDownloadMenuEntries | Public method to retrieve the entries for the downloads menu. |
hasBluetooth | Public method to check the availability of Bluetooth. |
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. |
supportsDeviceScan | Public method to indicate, that the Bluetooth implementation supports scanning for devices. |
None |
Constructor
Private slot to switch the board into 'bootloader' mode.
Private method to create the NRF52 submenu.
Private slot handling the response of the latest version request.
Private slot to flash a MicroPython firmware to the device.
Private slot to reset the connected device.
Private slot to show the firmware version of the connected device and the available firmware version.
Public method to activate the Bluetooth interface.
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 deactivate the Bluetooth interface.
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 Bluetooth status data of the connected board.
Public method to perform a Bluetooth device scan.
Public method to get the device documentation URL.
Public method to retrieve the entries for the downloads menu.
Public method to check the availability of Bluetooth.
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 indicate, that the Bluetooth implementation supports scanning for devices.
Function to instantiate a MicroPython device object.