diff -r 2b9546c0cbd9 -r a774e75a45ca src/eric7/Documentation/Source/eric7.MicroPython.MicrobitDevices.html --- a/src/eric7/Documentation/Source/eric7.MicroPython.MicrobitDevices.html Sat Feb 11 19:52:53 2023 +0100 +++ b/src/eric7/Documentation/Source/eric7.MicroPython.MicrobitDevices.html Sat Feb 11 19:53:53 2023 +0100 @@ -64,6 +64,10 @@ <td>Constructor</td> </tr> <tr> +<td><a href="#MicrobitDevice.__createMicrobitMenu">__createMicrobitMenu</a></td> +<td>Private method to create the microbit submenu.</td> +</tr> +<tr> <td><a href="#MicrobitDevice.__firmwareVersionResponse">__firmwareVersionResponse</a></td> <td>Private method handling the response of the latest version request.</td> </tr> @@ -72,6 +76,18 @@ <td>Private slot to flash MicroPython or the DAPLink firmware to the device.</td> </tr> <tr> +<td><a href="#MicrobitDevice.__isCalliope">__isCalliope</a></td> +<td>Private method to check, if the device is a Calliope mini.</td> +</tr> +<tr> +<td><a href="#MicrobitDevice.__isMicroBitV1">__isMicroBitV1</a></td> +<td>Private method to check, if the device is a BBC micro:bit v1.</td> +</tr> +<tr> +<td><a href="#MicrobitDevice.__isMicroBitV2">__isMicroBitV2</a></td> +<td>Private method to check, if the device is a BBC micro:bit v2.</td> +</tr> +<tr> <td><a href="#MicrobitDevice.__resetDevice">__resetDevice</a></td> <td>Private slot to reset the connected device.</td> </tr> @@ -148,7 +164,7 @@ <a NAME="MicrobitDevice.__init__" ID="MicrobitDevice.__init__"></a> <h4>MicrobitDevice (Constructor)</h4> -<b>MicrobitDevice</b>(<i>microPythonWidget, deviceType, parent=None</i>) +<b>MicrobitDevice</b>(<i>microPythonWidget, deviceType, serialNumber, parent=None</i>) <p> Constructor @@ -163,14 +179,25 @@ <dd> type of the device </dd> +<dt><i>serialNumber</i> (str)</dt> +<dd> +serial number of the board +</dd> <dt><i>parent</i> (QObject)</dt> <dd> reference to the parent object </dd> </dl> +<a NAME="MicrobitDevice.__createMicrobitMenu" ID="MicrobitDevice.__createMicrobitMenu"></a> +<h4>MicrobitDevice.__createMicrobitMenu</h4> +<b>__createMicrobitMenu</b>(<i></i>) + +<p> + Private method to create the microbit submenu. +</p> <a NAME="MicrobitDevice.__firmwareVersionResponse" ID="MicrobitDevice.__firmwareVersionResponse"></a> <h4>MicrobitDevice.__firmwareVersionResponse</h4> -<b>__firmwareVersionResponse</b>(<i>reply, implementation</i>) +<b>__firmwareVersionResponse</b>(<i>reply</i>) <p> Private method handling the response of the latest version request. @@ -181,11 +208,6 @@ <dd> reference to the reply object </dd> -<dt><i>implementation</i> (dict)</dt> -<dd> -dictionary containing the implementation data of the - connected device -</dd> </dl> <a NAME="MicrobitDevice.__flashMicroPython" ID="MicrobitDevice.__flashMicroPython"></a> <h4>MicrobitDevice.__flashMicroPython</h4> @@ -202,6 +224,63 @@ flag indicating to flash the DAPLink firmware </dd> </dl> +<a NAME="MicrobitDevice.__isCalliope" ID="MicrobitDevice.__isCalliope"></a> +<h4>MicrobitDevice.__isCalliope</h4> +<b>__isCalliope</b>(<i></i>) + +<p> + Private method to check, if the device is a Calliope mini. +</p> +<dl> +<dt>Return:</dt> +<dd> +flag indicating a Calliope mini +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +bool +</dd> +</dl> +<a NAME="MicrobitDevice.__isMicroBitV1" ID="MicrobitDevice.__isMicroBitV1"></a> +<h4>MicrobitDevice.__isMicroBitV1</h4> +<b>__isMicroBitV1</b>(<i></i>) + +<p> + Private method to check, if the device is a BBC micro:bit v1. +</p> +<dl> +<dt>Return:</dt> +<dd> +falg indicating a BBC micro:bit v1 +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +bool +</dd> +</dl> +<a NAME="MicrobitDevice.__isMicroBitV2" ID="MicrobitDevice.__isMicroBitV2"></a> +<h4>MicrobitDevice.__isMicroBitV2</h4> +<b>__isMicroBitV2</b>(<i></i>) + +<p> + Private method to check, if the device is a BBC micro:bit v2. +</p> +<dl> +<dt>Return:</dt> +<dd> +falg indicating a BBC micro:bit v2 +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +bool +</dd> +</dl> <a NAME="MicrobitDevice.__resetDevice" ID="MicrobitDevice.__resetDevice"></a> <h4>MicrobitDevice.__resetDevice</h4> <b>__resetDevice</b>(<i></i>) @@ -479,7 +558,7 @@ <hr /> <a NAME="createDevice" ID="createDevice"></a> <h2>createDevice</h2> -<b>createDevice</b>(<i>microPythonWidget, deviceType, vid, pid, boardName</i>) +<b>createDevice</b>(<i>microPythonWidget, deviceType, vid, pid, boardName, serialNumber</i>) <p> Function to instantiate a MicroPython device object. @@ -506,6 +585,10 @@ <dd> name of the board </dd> +<dt><i>serialNumber</i> (str)</dt> +<dd> +serial number of the board +</dd> </dl> <dl> <dt>Return:</dt>