62 <tr> |
62 <tr> |
63 <td><a href="#MicrobitDevice.__init__">MicrobitDevice</a></td> |
63 <td><a href="#MicrobitDevice.__init__">MicrobitDevice</a></td> |
64 <td>Constructor</td> |
64 <td>Constructor</td> |
65 </tr> |
65 </tr> |
66 <tr> |
66 <tr> |
|
67 <td><a href="#MicrobitDevice.__firmwareVersionResponse">__firmwareVersionResponse</a></td> |
|
68 <td>Private method handling the response of the latest version request.</td> |
|
69 </tr> |
|
70 <tr> |
67 <td><a href="#MicrobitDevice.__flashMicroPython">__flashMicroPython</a></td> |
71 <td><a href="#MicrobitDevice.__flashMicroPython">__flashMicroPython</a></td> |
68 <td>Private slot to flash MicroPython or the DAPLink firmware to the device.</td> |
72 <td>Private slot to flash MicroPython or the DAPLink firmware to the device.</td> |
69 </tr> |
73 </tr> |
70 <tr> |
74 <tr> |
71 <td><a href="#MicrobitDevice.__resetDevice">__resetDevice</a></td> |
75 <td><a href="#MicrobitDevice.__resetDevice">__resetDevice</a></td> |
76 <td>Private slot to copy the current script as 'main.py' onto the connected device.</td> |
80 <td>Private slot to copy the current script as 'main.py' onto the connected device.</td> |
77 </tr> |
81 </tr> |
78 <tr> |
82 <tr> |
79 <td><a href="#MicrobitDevice.__saveScriptToDevice">__saveScriptToDevice</a></td> |
83 <td><a href="#MicrobitDevice.__saveScriptToDevice">__saveScriptToDevice</a></td> |
80 <td>Private method to save the current script onto the connected device.</td> |
84 <td>Private method to save the current script onto the connected device.</td> |
|
85 </tr> |
|
86 <tr> |
|
87 <td><a href="#MicrobitDevice.__showFirmwareVersions">__showFirmwareVersions</a></td> |
|
88 <td>Private slot to show the firmware version of the connected device and the available firmware version.</td> |
81 </tr> |
89 </tr> |
82 <tr> |
90 <tr> |
83 <td><a href="#MicrobitDevice.addDeviceMenuEntries">addDeviceMenuEntries</a></td> |
91 <td><a href="#MicrobitDevice.addDeviceMenuEntries">addDeviceMenuEntries</a></td> |
84 <td>Public method to add device specific entries to the given menu.</td> |
92 <td>Public method to add device specific entries to the given menu.</td> |
85 </tr> |
93 </tr> |
158 <dt><i>parent</i> (QObject)</dt> |
166 <dt><i>parent</i> (QObject)</dt> |
159 <dd> |
167 <dd> |
160 reference to the parent object |
168 reference to the parent object |
161 </dd> |
169 </dd> |
162 </dl> |
170 </dl> |
|
171 <a NAME="MicrobitDevice.__firmwareVersionResponse" ID="MicrobitDevice.__firmwareVersionResponse"></a> |
|
172 <h4>MicrobitDevice.__firmwareVersionResponse</h4> |
|
173 <b>__firmwareVersionResponse</b>(<i>reply, implementation</i>) |
|
174 |
|
175 <p> |
|
176 Private method handling the response of the latest version request. |
|
177 </p> |
|
178 <dl> |
|
179 |
|
180 <dt><i>reply</i> (QNetworkReply)</dt> |
|
181 <dd> |
|
182 reference to the reply object |
|
183 </dd> |
|
184 <dt><i>implementation</i> (dict)</dt> |
|
185 <dd> |
|
186 dictionary containing the implementation data of the |
|
187 connected device |
|
188 </dd> |
|
189 </dl> |
163 <a NAME="MicrobitDevice.__flashMicroPython" ID="MicrobitDevice.__flashMicroPython"></a> |
190 <a NAME="MicrobitDevice.__flashMicroPython" ID="MicrobitDevice.__flashMicroPython"></a> |
164 <h4>MicrobitDevice.__flashMicroPython</h4> |
191 <h4>MicrobitDevice.__flashMicroPython</h4> |
165 <b>__flashMicroPython</b>(<i>firmware=False</i>) |
192 <b>__flashMicroPython</b>(<i>firmware=False</i>) |
166 |
193 |
167 <p> |
194 <p> |
203 <dt><i>scriptName</i> (str)</dt> |
230 <dt><i>scriptName</i> (str)</dt> |
204 <dd> |
231 <dd> |
205 name of the file on the device |
232 name of the file on the device |
206 </dd> |
233 </dd> |
207 </dl> |
234 </dl> |
|
235 <a NAME="MicrobitDevice.__showFirmwareVersions" ID="MicrobitDevice.__showFirmwareVersions"></a> |
|
236 <h4>MicrobitDevice.__showFirmwareVersions</h4> |
|
237 <b>__showFirmwareVersions</b>(<i></i>) |
|
238 |
|
239 <p> |
|
240 Private slot to show the firmware version of the connected device and the |
|
241 available firmware version. |
|
242 </p> |
208 <a NAME="MicrobitDevice.addDeviceMenuEntries" ID="MicrobitDevice.addDeviceMenuEntries"></a> |
243 <a NAME="MicrobitDevice.addDeviceMenuEntries" ID="MicrobitDevice.addDeviceMenuEntries"></a> |
209 <h4>MicrobitDevice.addDeviceMenuEntries</h4> |
244 <h4>MicrobitDevice.addDeviceMenuEntries</h4> |
210 <b>addDeviceMenuEntries</b>(<i>menu</i>) |
245 <b>addDeviceMenuEntries</b>(<i>menu</i>) |
211 |
246 |
212 <p> |
247 <p> |