67 <td><a href="#MicrobitDevice.__createMicrobitMenu">__createMicrobitMenu</a></td> |
67 <td><a href="#MicrobitDevice.__createMicrobitMenu">__createMicrobitMenu</a></td> |
68 <td>Private method to create the microbit submenu.</td> |
68 <td>Private method to create the microbit submenu.</td> |
69 </tr> |
69 </tr> |
70 <tr> |
70 <tr> |
71 <td><a href="#MicrobitDevice.__firmwareVersionResponse">__firmwareVersionResponse</a></td> |
71 <td><a href="#MicrobitDevice.__firmwareVersionResponse">__firmwareVersionResponse</a></td> |
72 <td>Private method handling the response of the latest version request.</td> |
72 <td>Private slot handling the response of the latest version request.</td> |
73 </tr> |
73 </tr> |
74 <tr> |
74 <tr> |
75 <td><a href="#MicrobitDevice.__flashMicroPython">__flashMicroPython</a></td> |
75 <td><a href="#MicrobitDevice.__flashMicroPython">__flashMicroPython</a></td> |
76 <td>Private slot to flash MicroPython or the DAPLink firmware to the device.</td> |
76 <td>Private slot to flash MicroPython or the DAPLink firmware to the device.</td> |
77 </tr> |
77 </tr> |
164 <td>Public method to run the given Python script.</td> |
164 <td>Public method to run the given Python script.</td> |
165 </tr> |
165 </tr> |
166 <tr> |
166 <tr> |
167 <td><a href="#MicrobitDevice.setButtons">setButtons</a></td> |
167 <td><a href="#MicrobitDevice.setButtons">setButtons</a></td> |
168 <td>Public method to enable the supported action buttons.</td> |
168 <td>Public method to enable the supported action buttons.</td> |
|
169 </tr> |
|
170 <tr> |
|
171 <td><a href="#MicrobitDevice.setConnected">setConnected</a></td> |
|
172 <td>Public method to set the connection state.</td> |
169 </tr> |
173 </tr> |
170 </table> |
174 </table> |
171 <h3>Static Methods</h3> |
175 <h3>Static Methods</h3> |
172 |
176 |
173 <table> |
177 <table> |
210 <a NAME="MicrobitDevice.__firmwareVersionResponse" ID="MicrobitDevice.__firmwareVersionResponse"></a> |
214 <a NAME="MicrobitDevice.__firmwareVersionResponse" ID="MicrobitDevice.__firmwareVersionResponse"></a> |
211 <h4>MicrobitDevice.__firmwareVersionResponse</h4> |
215 <h4>MicrobitDevice.__firmwareVersionResponse</h4> |
212 <b>__firmwareVersionResponse</b>(<i>reply</i>) |
216 <b>__firmwareVersionResponse</b>(<i>reply</i>) |
213 |
217 |
214 <p> |
218 <p> |
215 Private method handling the response of the latest version request. |
219 Private slot handling the response of the latest version request. |
216 </p> |
220 </p> |
217 <dl> |
221 <dl> |
218 |
222 |
219 <dt><i>reply</i> (QNetworkReply)</dt> |
223 <dt><i>reply</i> (QNetworkReply)</dt> |
220 <dd> |
224 <dd> |
668 <b>setButtons</b>(<i></i>) |
672 <b>setButtons</b>(<i></i>) |
669 |
673 |
670 <p> |
674 <p> |
671 Public method to enable the supported action buttons. |
675 Public method to enable the supported action buttons. |
672 </p> |
676 </p> |
|
677 <a NAME="MicrobitDevice.setConnected" ID="MicrobitDevice.setConnected"></a> |
|
678 <h4>MicrobitDevice.setConnected</h4> |
|
679 <b>setConnected</b>(<i>connected</i>) |
|
680 |
|
681 <p> |
|
682 Public method to set the connection state. |
|
683 </p> |
|
684 <p> |
|
685 Note: This method can be overwritten to perform actions upon connect |
|
686 or disconnect of the device. |
|
687 </p> |
|
688 <dl> |
|
689 |
|
690 <dt><i>connected</i> (bool)</dt> |
|
691 <dd> |
|
692 connection state |
|
693 </dd> |
|
694 </dl> |
673 <div align="right"><a href="#top">Up</a></div> |
695 <div align="right"><a href="#top">Up</a></div> |
674 <hr /> |
696 <hr /> |
675 <hr /> |
697 <hr /> |
676 <a NAME="createDevice" ID="createDevice"></a> |
698 <a NAME="createDevice" ID="createDevice"></a> |
677 <h2>createDevice</h2> |
699 <h2>createDevice</h2> |