src/eric7/Documentation/Source/eric7.MicroPython.Devices.MicrobitDevices.html

Sat, 26 Apr 2025 12:34:32 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 26 Apr 2025 12:34:32 +0200
branch
eric7
changeset 11240
c48c615c04a3
parent 11186
c2d18aefef6b
permissions
-rw-r--r--

MicroPython
- Added a configuration option to disable the support for the no longer produced Pimoroni Pico Wireless Pack.

9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1 <!DOCTYPE html>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
2 <html><head>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
3 <title>eric7.MicroPython.Devices.MicrobitDevices</title>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
4 <meta charset="UTF-8">
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
5 <link rel="stylesheet" href="styles.css">
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
6 </head>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
7 <body>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
8 <a NAME="top" ID="top"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
9 <h1>eric7.MicroPython.Devices.MicrobitDevices</h1>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
10 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
11 Module implementing the device interface class for BBC micro:bit and
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
12 Calliope mini boards.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
13 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
14
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
15 <h3>Global Attributes</h3>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
16 <table>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
17 <tr><td>None</td></tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
18 </table>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
19
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
20 <h3>Classes</h3>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
21 <table>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
22 <tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
23 <td><a href="#MicrobitDevice">MicrobitDevice</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
24 <td>Class implementing the device for BBC micro:bit and Calliope mini boards.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
25 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
26 </table>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
27
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
28 <h3>Functions</h3>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
29 <table>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
30 <tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
31 <td><a href="#createDevice">createDevice</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
32 <td>Function to instantiate a MicroPython device object.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
33 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
34 </table>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
35
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
36 <hr />
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
37 <hr />
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
38 <a NAME="MicrobitDevice" ID="MicrobitDevice"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
39 <h2>MicrobitDevice</h2>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
40 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
41 Class implementing the device for BBC micro:bit and Calliope mini boards.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
42 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
43
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
44 <h3>Derived from</h3>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
45 BaseDevice
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
46 <h3>Class Attributes</h3>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
47 <table>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
48 <tr><td>None</td></tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
49 </table>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
50
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
51 <h3>Class Methods</h3>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
52 <table>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
53 <tr><td>None</td></tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
54 </table>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
55
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
56 <h3>Methods</h3>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
57 <table>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
58 <tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
59 <td><a href="#MicrobitDevice.__init__">MicrobitDevice</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
60 <td>Constructor</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
61 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
62 <tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
63 <td><a href="#MicrobitDevice.__createMicrobitMenu">__createMicrobitMenu</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
64 <td>Private method to create the microbit submenu.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
65 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
66 <tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
67 <td><a href="#MicrobitDevice.__firmwareVersionResponse">__firmwareVersionResponse</a></td>
9840
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
68 <td>Private slot handling the response of the latest version request.</td>
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
69 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
70 <tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
71 <td><a href="#MicrobitDevice.__flashMicroPython">__flashMicroPython</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
72 <td>Private slot to flash MicroPython or the DAPLink firmware to the device.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
73 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
74 <tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
75 <td><a href="#MicrobitDevice.__isCalliope">__isCalliope</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
76 <td>Private method to check, if the device is a Calliope mini.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
77 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
78 <tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
79 <td><a href="#MicrobitDevice.__isMicroBitV1">__isMicroBitV1</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
80 <td>Private method to check, if the device is a BBC micro:bit v1.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
81 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
82 <tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
83 <td><a href="#MicrobitDevice.__isMicroBitV2">__isMicroBitV2</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
84 <td>Private method to check, if the device is a BBC micro:bit v2.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
85 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
86 <tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
87 <td><a href="#MicrobitDevice.__resetDevice">__resetDevice</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
88 <td>Private slot to reset the connected device.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
89 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
90 <tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
91 <td><a href="#MicrobitDevice.__saveMain">__saveMain</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
92 <td>Private slot to copy the current script as 'main.py' onto the connected device.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
93 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
94 <tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
95 <td><a href="#MicrobitDevice.__showFirmwareVersions">__showFirmwareVersions</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
96 <td>Private slot to show the firmware version of the connected device and the available firmware version.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
97 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
98 <tr>
11186
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
99 <td><a href="#MicrobitDevice._boardInformationCommands">_boardInformationCommands</a></td>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
100 <td>Protected method defining the list of commands to be execute on the board for determining information about the board.</td>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
101 </tr>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
102 <tr>
9765
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
103 <td><a href="#MicrobitDevice._getSetTimeCode">_getSetTimeCode</a></td>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
104 <td>Protected method to get the device code to set the time.</td>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
105 </tr>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
106 <tr>
9864
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
107 <td><a href="#MicrobitDevice.activateBluetoothInterface">activateBluetoothInterface</a></td>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
108 <td>Public method to activate the Bluetooth interface.</td>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
109 </tr>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
110 <tr>
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
111 <td><a href="#MicrobitDevice.addDeviceMenuEntries">addDeviceMenuEntries</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
112 <td>Public method to add device specific entries to the given menu.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
113 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
114 <tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
115 <td><a href="#MicrobitDevice.canRunScript">canRunScript</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
116 <td>Public method to determine, if a script can be executed.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
117 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
118 <tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
119 <td><a href="#MicrobitDevice.canStartFileManager">canStartFileManager</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
120 <td>Public method to determine, if a File Manager can be started.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
121 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
122 <tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
123 <td><a href="#MicrobitDevice.canStartPlotter">canStartPlotter</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
124 <td>Public method to determine, if a Plotter can be started.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
125 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
126 <tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
127 <td><a href="#MicrobitDevice.canStartRepl">canStartRepl</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
128 <td>Public method to determine, if a REPL can be started.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
129 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
130 <tr>
9864
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
131 <td><a href="#MicrobitDevice.deactivateBluetoothInterface">deactivateBluetoothInterface</a></td>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
132 <td>Public method to deactivate the Bluetooth interface.</td>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
133 </tr>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
134 <tr>
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
135 <td><a href="#MicrobitDevice.deviceName">deviceName</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
136 <td>Public method to get the name of the device.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
137 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
138 <tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
139 <td><a href="#MicrobitDevice.forceInterrupt">forceInterrupt</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
140 <td>Public method to determine the need for an interrupt when opening the serial connection.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
141 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
142 <tr>
9864
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
143 <td><a href="#MicrobitDevice.getBluetoothStatus">getBluetoothStatus</a></td>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
144 <td>Public method to get Bluetooth status data of the connected board.</td>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
145 </tr>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
146 <tr>
11177
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
147 <td><a href="#MicrobitDevice.getBoardInformation">getBoardInformation</a></td>
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
148 <td>Public method to get some information data of the connected board.</td>
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
149 </tr>
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
150 <tr>
11186
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
151 <td><a href="#MicrobitDevice.getData">getData</a></td>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
152 <td>Public method to read data from the connected device.</td>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
153 </tr>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
154 <tr>
9864
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
155 <td><a href="#MicrobitDevice.getDeviceScan">getDeviceScan</a></td>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
156 <td>Public method to perform a Bluetooth device scan.</td>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
157 </tr>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
158 <tr>
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
159 <td><a href="#MicrobitDevice.getDocumentationUrl">getDocumentationUrl</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
160 <td>Public method to get the device documentation URL.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
161 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
162 <tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
163 <td><a href="#MicrobitDevice.getDownloadMenuEntries">getDownloadMenuEntries</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
164 <td>Public method to retrieve the entries for the downloads menu.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
165 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
166 <tr>
9864
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
167 <td><a href="#MicrobitDevice.hasBluetooth">hasBluetooth</a></td>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
168 <td>Public method to check the availability of Bluetooth.</td>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
169 </tr>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
170 <tr>
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
171 <td><a href="#MicrobitDevice.hasFlashMenuEntry">hasFlashMenuEntry</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
172 <td>Public method to check, if the device has its own flash menu entry.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
173 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
174 <tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
175 <td><a href="#MicrobitDevice.hasTimeCommands">hasTimeCommands</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
176 <td>Public method to check, if the device supports time commands.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
177 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
178 <tr>
11186
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
179 <td><a href="#MicrobitDevice.isMicrobit">isMicrobit</a></td>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
180 <td>Public method to check, if the device is a BBC micro:bit or Calliope mini.</td>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
181 </tr>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
182 <tr>
9765
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
183 <td><a href="#MicrobitDevice.lls">lls</a></td>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
184 <td>Public method to get a long directory listing of the connected device including meta data.</td>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
185 </tr>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
186 <tr>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
187 <td><a href="#MicrobitDevice.ls">ls</a></td>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
188 <td>Public method to get a directory listing of the connected device.</td>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
189 </tr>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
190 <tr>
11186
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
191 <td><a href="#MicrobitDevice.putData">putData</a></td>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
192 <td>Public method to write the given data to the connected device.</td>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
193 </tr>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
194 <tr>
9765
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
195 <td><a href="#MicrobitDevice.pwd">pwd</a></td>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
196 <td>Public method to get the current directory of the connected device.</td>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
197 </tr>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
198 <tr>
11186
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
199 <td><a href="#MicrobitDevice.rm">rm</a></td>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
200 <td>Public method to remove a file from the connected device.</td>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
201 </tr>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
202 <tr>
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
203 <td><a href="#MicrobitDevice.runScript">runScript</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
204 <td>Public method to run the given Python script.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
205 </tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
206 <tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
207 <td><a href="#MicrobitDevice.setButtons">setButtons</a></td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
208 <td>Public method to enable the supported action buttons.</td>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
209 </tr>
9840
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
210 <tr>
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
211 <td><a href="#MicrobitDevice.setConnected">setConnected</a></td>
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
212 <td>Public method to set the connection state.</td>
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
213 </tr>
11167
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
214 <tr>
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
215 <td><a href="#MicrobitDevice.supportsDeviceScan">supportsDeviceScan</a></td>
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
216 <td>Public method to indicate, that the Bluetooth implementation supports scanning for devices.</td>
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
217 </tr>
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
218 </table>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
219
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
220 <h3>Static Methods</h3>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
221 <table>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
222 <tr><td>None</td></tr>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
223 </table>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
224
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
225
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
226 <a NAME="MicrobitDevice.__init__" ID="MicrobitDevice.__init__"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
227 <h4>MicrobitDevice (Constructor)</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
228 <b>MicrobitDevice</b>(<i>microPythonWidget, deviceType, serialNumber, parent=None</i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
229 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
230 Constructor
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
231 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
232
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
233 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
234
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
235 <dt><i>microPythonWidget</i> (MicroPythonWidget)</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
236 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
237 reference to the main MicroPython widget
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
238 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
239 <dt><i>deviceType</i> (str)</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
240 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
241 type of the device
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
242 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
243 <dt><i>serialNumber</i> (str)</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
244 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
245 serial number of the board
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
246 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
247 <dt><i>parent</i> (QObject)</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
248 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
249 reference to the parent object
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
250 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
251 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
252 <a NAME="MicrobitDevice.__createMicrobitMenu" ID="MicrobitDevice.__createMicrobitMenu"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
253 <h4>MicrobitDevice.__createMicrobitMenu</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
254 <b>__createMicrobitMenu</b>(<i></i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
255 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
256 Private method to create the microbit submenu.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
257 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
258
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
259 <a NAME="MicrobitDevice.__firmwareVersionResponse" ID="MicrobitDevice.__firmwareVersionResponse"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
260 <h4>MicrobitDevice.__firmwareVersionResponse</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
261 <b>__firmwareVersionResponse</b>(<i>reply</i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
262 <p>
9840
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
263 Private slot handling the response of the latest version request.
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
264 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
265
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
266 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
267
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
268 <dt><i>reply</i> (QNetworkReply)</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
269 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
270 reference to the reply object
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
271 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
272 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
273 <a NAME="MicrobitDevice.__flashMicroPython" ID="MicrobitDevice.__flashMicroPython"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
274 <h4>MicrobitDevice.__flashMicroPython</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
275 <b>__flashMicroPython</b>(<i>firmware=False</i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
276 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
277 Private slot to flash MicroPython or the DAPLink firmware to the
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
278 device.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
279 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
280
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
281 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
282
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
283 <dt><i>firmware</i> (bool)</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
284 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
285 flag indicating to flash the DAPLink firmware
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
286 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
287 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
288 <a NAME="MicrobitDevice.__isCalliope" ID="MicrobitDevice.__isCalliope"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
289 <h4>MicrobitDevice.__isCalliope</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
290 <b>__isCalliope</b>(<i></i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
291 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
292 Private method to check, if the device is a Calliope mini.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
293 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
294
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
295 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
296 <dt>Return:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
297 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
298 flag indicating a Calliope mini
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
299 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
300 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
301 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
302 <dt>Return Type:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
303 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
304 bool
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
305 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
306 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
307 <a NAME="MicrobitDevice.__isMicroBitV1" ID="MicrobitDevice.__isMicroBitV1"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
308 <h4>MicrobitDevice.__isMicroBitV1</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
309 <b>__isMicroBitV1</b>(<i></i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
310 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
311 Private method to check, if the device is a BBC micro:bit v1.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
312 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
313
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
314 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
315 <dt>Return:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
316 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
317 falg indicating a BBC micro:bit v1
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
318 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
319 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
320 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
321 <dt>Return Type:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
322 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
323 bool
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
324 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
325 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
326 <a NAME="MicrobitDevice.__isMicroBitV2" ID="MicrobitDevice.__isMicroBitV2"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
327 <h4>MicrobitDevice.__isMicroBitV2</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
328 <b>__isMicroBitV2</b>(<i></i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
329 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
330 Private method to check, if the device is a BBC micro:bit v2.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
331 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
332
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
333 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
334 <dt>Return:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
335 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
336 falg indicating a BBC micro:bit v2
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
337 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
338 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
339 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
340 <dt>Return Type:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
341 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
342 bool
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
343 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
344 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
345 <a NAME="MicrobitDevice.__resetDevice" ID="MicrobitDevice.__resetDevice"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
346 <h4>MicrobitDevice.__resetDevice</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
347 <b>__resetDevice</b>(<i></i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
348 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
349 Private slot to reset the connected device.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
350 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
351
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
352 <a NAME="MicrobitDevice.__saveMain" ID="MicrobitDevice.__saveMain"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
353 <h4>MicrobitDevice.__saveMain</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
354 <b>__saveMain</b>(<i></i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
355 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
356 Private slot to copy the current script as 'main.py' onto the
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
357 connected device.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
358 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
359
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
360 <a NAME="MicrobitDevice.__showFirmwareVersions" ID="MicrobitDevice.__showFirmwareVersions"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
361 <h4>MicrobitDevice.__showFirmwareVersions</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
362 <b>__showFirmwareVersions</b>(<i></i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
363 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
364 Private slot to show the firmware version of the connected device and the
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
365 available firmware version.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
366 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
367
11186
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
368 <a NAME="MicrobitDevice._boardInformationCommands" ID="MicrobitDevice._boardInformationCommands"></a>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
369 <h4>MicrobitDevice._boardInformationCommands</h4>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
370 <b>_boardInformationCommands</b>(<i></i>)
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
371 <p>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
372 Protected method defining the list of commands to be execute on the board
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
373 for determining information about the board.
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
374 </p>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
375
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
376 <dl>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
377 <dt>Return:</dt>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
378 <dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
379 list of command strings to be executed
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
380 </dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
381 </dl>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
382 <dl>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
383 <dt>Return Type:</dt>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
384 <dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
385 list of str
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
386 </dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
387 </dl>
9765
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
388 <a NAME="MicrobitDevice._getSetTimeCode" ID="MicrobitDevice._getSetTimeCode"></a>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
389 <h4>MicrobitDevice._getSetTimeCode</h4>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
390 <b>_getSetTimeCode</b>(<i></i>)
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
391 <p>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
392 Protected method to get the device code to set the time.
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
393 </p>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
394 <p>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
395 Note: This method must be implemented in the various device specific
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
396 subclasses.
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
397 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
398
9765
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
399 <dl>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
400 <dt>Return:</dt>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
401 <dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
402 code to be executed on the connected device to set the time
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
403 </dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
404 </dl>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
405 <dl>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
406 <dt>Return Type:</dt>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
407 <dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
408 str
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
409 </dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
410 </dl>
9864
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
411 <a NAME="MicrobitDevice.activateBluetoothInterface" ID="MicrobitDevice.activateBluetoothInterface"></a>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
412 <h4>MicrobitDevice.activateBluetoothInterface</h4>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
413 <b>activateBluetoothInterface</b>(<i></i>)
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
414 <p>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
415 Public method to activate the Bluetooth interface.
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
416 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
417
9864
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
418 <dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
419 <dt>Return:</dt>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
420 <dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
421 flag indicating the new state of the Bluetooth interface
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
422 </dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
423 </dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
424 <dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
425 <dt>Return Type:</dt>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
426 <dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
427 bool
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
428 </dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
429 </dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
430 <dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
431
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
432 <dt>Raises <b>OSError</b>:</dt>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
433 <dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
434 raised to indicate an issue with the device
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
435 </dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
436 </dl>
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
437 <a NAME="MicrobitDevice.addDeviceMenuEntries" ID="MicrobitDevice.addDeviceMenuEntries"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
438 <h4>MicrobitDevice.addDeviceMenuEntries</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
439 <b>addDeviceMenuEntries</b>(<i>menu</i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
440 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
441 Public method to add device specific entries to the given menu.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
442 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
443
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
444 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
445
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
446 <dt><i>menu</i> (QMenu)</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
447 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
448 reference to the context menu
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
449 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
450 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
451 <a NAME="MicrobitDevice.canRunScript" ID="MicrobitDevice.canRunScript"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
452 <h4>MicrobitDevice.canRunScript</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
453 <b>canRunScript</b>(<i></i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
454 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
455 Public method to determine, if a script can be executed.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
456 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
457
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
458 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
459 <dt>Return:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
460 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
461 tuple containing a flag indicating it is safe to start a
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
462 Plotter and a reason why it cannot.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
463 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
464 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
465 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
466 <dt>Return Type:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
467 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
468 tuple of (bool, str)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
469 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
470 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
471 <a NAME="MicrobitDevice.canStartFileManager" ID="MicrobitDevice.canStartFileManager"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
472 <h4>MicrobitDevice.canStartFileManager</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
473 <b>canStartFileManager</b>(<i></i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
474 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
475 Public method to determine, if a File Manager can be started.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
476 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
477
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
478 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
479 <dt>Return:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
480 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
481 tuple containing a flag indicating it is safe to start a
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
482 File Manager and a reason why it cannot.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
483 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
484 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
485 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
486 <dt>Return Type:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
487 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
488 tuple of (bool, str)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
489 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
490 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
491 <a NAME="MicrobitDevice.canStartPlotter" ID="MicrobitDevice.canStartPlotter"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
492 <h4>MicrobitDevice.canStartPlotter</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
493 <b>canStartPlotter</b>(<i></i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
494 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
495 Public method to determine, if a Plotter can be started.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
496 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
497
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
498 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
499 <dt>Return:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
500 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
501 tuple containing a flag indicating it is safe to start a
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
502 Plotter and a reason why it cannot.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
503 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
504 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
505 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
506 <dt>Return Type:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
507 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
508 tuple of (bool, str)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
509 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
510 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
511 <a NAME="MicrobitDevice.canStartRepl" ID="MicrobitDevice.canStartRepl"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
512 <h4>MicrobitDevice.canStartRepl</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
513 <b>canStartRepl</b>(<i></i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
514 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
515 Public method to determine, if a REPL can be started.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
516 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
517
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
518 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
519 <dt>Return:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
520 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
521 tuple containing a flag indicating it is safe to start a REPL
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
522 and a reason why it cannot.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
523 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
524 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
525 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
526 <dt>Return Type:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
527 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
528 tuple of (bool, str)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
529 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
530 </dl>
9864
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
531 <a NAME="MicrobitDevice.deactivateBluetoothInterface" ID="MicrobitDevice.deactivateBluetoothInterface"></a>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
532 <h4>MicrobitDevice.deactivateBluetoothInterface</h4>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
533 <b>deactivateBluetoothInterface</b>(<i></i>)
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
534 <p>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
535 Public method to deactivate the Bluetooth interface.
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
536 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
537
9864
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
538 <dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
539 <dt>Return:</dt>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
540 <dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
541 flag indicating the new state of the Bluetooth interface
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
542 </dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
543 </dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
544 <dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
545 <dt>Return Type:</dt>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
546 <dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
547 bool
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
548 </dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
549 </dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
550 <dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
551
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
552 <dt>Raises <b>OSError</b>:</dt>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
553 <dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
554 raised to indicate an issue with the device
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
555 </dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
556 </dl>
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
557 <a NAME="MicrobitDevice.deviceName" ID="MicrobitDevice.deviceName"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
558 <h4>MicrobitDevice.deviceName</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
559 <b>deviceName</b>(<i></i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
560 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
561 Public method to get the name of the device.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
562 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
563
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
564 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
565 <dt>Return:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
566 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
567 name of the device
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
568 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
569 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
570 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
571 <dt>Return Type:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
572 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
573 str
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
574 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
575 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
576 <a NAME="MicrobitDevice.forceInterrupt" ID="MicrobitDevice.forceInterrupt"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
577 <h4>MicrobitDevice.forceInterrupt</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
578 <b>forceInterrupt</b>(<i></i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
579 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
580 Public method to determine the need for an interrupt when opening the
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
581 serial connection.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
582 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
583
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
584 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
585 <dt>Return:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
586 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
587 flag indicating an interrupt is needed
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
588 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
589 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
590 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
591 <dt>Return Type:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
592 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
593 bool
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
594 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
595 </dl>
9864
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
596 <a NAME="MicrobitDevice.getBluetoothStatus" ID="MicrobitDevice.getBluetoothStatus"></a>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
597 <h4>MicrobitDevice.getBluetoothStatus</h4>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
598 <b>getBluetoothStatus</b>(<i></i>)
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
599 <p>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
600 Public method to get Bluetooth status data of the connected board.
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
601 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
602
9864
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
603 <dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
604 <dt>Return:</dt>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
605 <dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
606 list of tuples containing the translated status data label and
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
607 the associated value
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
608 </dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
609 </dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
610 <dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
611 <dt>Return Type:</dt>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
612 <dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
613 list of tuples of (str, str)
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
614 </dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
615 </dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
616 <dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
617
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
618 <dt>Raises <b>OSError</b>:</dt>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
619 <dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
620 raised to indicate an issue with the device
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
621 </dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
622 </dl>
11177
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
623 <a NAME="MicrobitDevice.getBoardInformation" ID="MicrobitDevice.getBoardInformation"></a>
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
624 <h4>MicrobitDevice.getBoardInformation</h4>
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
625 <b>getBoardInformation</b>(<i></i>)
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
626 <p>
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
627 Public method to get some information data of the connected board.
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
628 </p>
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
629
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
630 <dl>
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
631 <dt>Return:</dt>
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
632 <dd>
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
633 dictionary containing the determined data
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
634 </dd>
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
635 </dl>
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
636 <dl>
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
637 <dt>Return Type:</dt>
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
638 <dd>
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
639 dict
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
640 </dd>
f511038a0061 Corrected some issues related to controllers with small RAM and limited numbers support (i.e. BBC micro:bit and Calliope mini).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11167
diff changeset
641 </dl>
11186
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
642 <a NAME="MicrobitDevice.getData" ID="MicrobitDevice.getData"></a>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
643 <h4>MicrobitDevice.getData</h4>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
644 <b>getData</b>(<i>deviceFileName</i>)
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
645 <p>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
646 Public method to read data from the connected device.
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
647 </p>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
648
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
649 <dl>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
650
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
651 <dt><i>deviceFileName</i> (str)</dt>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
652 <dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
653 name of the file to read from
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
654 </dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
655 </dl>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
656 <dl>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
657 <dt>Return:</dt>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
658 <dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
659 data read from the device
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
660 </dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
661 </dl>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
662 <dl>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
663 <dt>Return Type:</dt>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
664 <dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
665 bytes
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
666 </dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
667 </dl>
9864
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
668 <a NAME="MicrobitDevice.getDeviceScan" ID="MicrobitDevice.getDeviceScan"></a>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
669 <h4>MicrobitDevice.getDeviceScan</h4>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
670 <b>getDeviceScan</b>(<i>timeout=10</i>)
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
671 <p>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
672 Public method to perform a Bluetooth device scan.
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
673 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
674
9864
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
675 <dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
676
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
677 <dt><i>timeout</i> (int (optional))</dt>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
678 <dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
679 duration of the device scan in seconds (defaults
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
680 to 10)
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
681 </dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
682 </dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
683 <dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
684 <dt>Return:</dt>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
685 <dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
686 tuple containing a dictionary with the scan results and
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
687 an error string
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
688 </dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
689 </dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
690 <dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
691 <dt>Return Type:</dt>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
692 <dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
693 tuple of (dict, str)
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
694 </dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
695 </dl>
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
696 <a NAME="MicrobitDevice.getDocumentationUrl" ID="MicrobitDevice.getDocumentationUrl"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
697 <h4>MicrobitDevice.getDocumentationUrl</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
698 <b>getDocumentationUrl</b>(<i></i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
699 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
700 Public method to get the device documentation URL.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
701 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
702
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
703 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
704 <dt>Return:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
705 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
706 documentation URL of the device
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
707 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
708 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
709 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
710 <dt>Return Type:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
711 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
712 str
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
713 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
714 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
715 <a NAME="MicrobitDevice.getDownloadMenuEntries" ID="MicrobitDevice.getDownloadMenuEntries"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
716 <h4>MicrobitDevice.getDownloadMenuEntries</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
717 <b>getDownloadMenuEntries</b>(<i></i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
718 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
719 Public method to retrieve the entries for the downloads menu.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
720 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
721
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
722 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
723 <dt>Return:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
724 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
725 list of tuples with menu text and URL to be opened for each
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
726 entry
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
727 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
728 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
729 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
730 <dt>Return Type:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
731 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
732 list of tuple of (str, str)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
733 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
734 </dl>
9864
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
735 <a NAME="MicrobitDevice.hasBluetooth" ID="MicrobitDevice.hasBluetooth"></a>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
736 <h4>MicrobitDevice.hasBluetooth</h4>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
737 <b>hasBluetooth</b>(<i></i>)
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
738 <p>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
739 Public method to check the availability of Bluetooth.
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
740 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
741
9864
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
742 <dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
743 <dt>Return:</dt>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
744 <dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
745 flag indicating the availability of Bluetooth
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
746 </dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
747 </dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
748 <dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
749 <dt>Return Type:</dt>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
750 <dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
751 bool
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
752 </dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
753 </dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
754 <dl>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
755
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
756 <dt>Raises <b>OSError</b>:</dt>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
757 <dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
758 raised to indicate an issue with the device
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
759 </dd>
f848aacf3447 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9840
diff changeset
760 </dl>
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
761 <a NAME="MicrobitDevice.hasFlashMenuEntry" ID="MicrobitDevice.hasFlashMenuEntry"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
762 <h4>MicrobitDevice.hasFlashMenuEntry</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
763 <b>hasFlashMenuEntry</b>(<i></i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
764 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
765 Public method to check, if the device has its own flash menu entry.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
766 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
767
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
768 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
769 <dt>Return:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
770 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
771 flag indicating a specific flash menu entry
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
772 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
773 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
774 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
775 <dt>Return Type:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
776 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
777 bool
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
778 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
779 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
780 <a NAME="MicrobitDevice.hasTimeCommands" ID="MicrobitDevice.hasTimeCommands"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
781 <h4>MicrobitDevice.hasTimeCommands</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
782 <b>hasTimeCommands</b>(<i></i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
783 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
784 Public method to check, if the device supports time commands.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
785 </p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
786 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
787 The default returns True.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
788 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
789
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
790 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
791 <dt>Return:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
792 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
793 flag indicating support for time commands
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
794 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
795 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
796 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
797 <dt>Return Type:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
798 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
799 bool
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
800 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
801 </dl>
11186
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
802 <a NAME="MicrobitDevice.isMicrobit" ID="MicrobitDevice.isMicrobit"></a>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
803 <h4>MicrobitDevice.isMicrobit</h4>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
804 <b>isMicrobit</b>(<i></i>)
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
805 <p>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
806 Public method to check, if the device is a BBC micro:bit or Calliope mini.
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
807 </p>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
808
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
809 <dl>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
810 <dt>Return:</dt>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
811 <dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
812 flag indicating a micro:bit device
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
813 </dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
814 </dl>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
815 <dl>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
816 <dt>Return Type:</dt>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
817 <dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
818 bool
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
819 </dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
820 </dl>
9765
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
821 <a NAME="MicrobitDevice.lls" ID="MicrobitDevice.lls"></a>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
822 <h4>MicrobitDevice.lls</h4>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
823 <b>lls</b>(<i>dirname="", fullstat=False, showHidden=False</i>)
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
824 <p>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
825 Public method to get a long directory listing of the connected device
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
826 including meta data.
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
827 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
828
9765
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
829 <dl>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
830
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
831 <dt><i>dirname</i> (str)</dt>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
832 <dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
833 name of the directory to be listed
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
834 </dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
835 <dt><i>fullstat</i> (bool)</dt>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
836 <dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
837 flag indicating to return the full stat() tuple
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
838 </dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
839 <dt><i>showHidden</i> (bool)</dt>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
840 <dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
841 flag indicating to show hidden files as well
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
842 </dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
843 </dl>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
844 <dl>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
845 <dt>Return:</dt>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
846 <dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
847 list containing the directory listing with tuple entries of
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
848 the name and and a tuple of mode, size and time (if fullstat is
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
849 false) or the complete stat() tuple. 'None' is returned in case the
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
850 directory doesn't exist.
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
851 </dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
852 </dl>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
853 <dl>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
854 <dt>Return Type:</dt>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
855 <dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
856 tuple of (str, tuple)
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
857 </dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
858 </dl>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
859 <dl>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
860
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
861 <dt>Raises <b>OSError</b>:</dt>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
862 <dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
863 raised to indicate an issue with the device
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
864 </dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
865 </dl>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
866 <a NAME="MicrobitDevice.ls" ID="MicrobitDevice.ls"></a>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
867 <h4>MicrobitDevice.ls</h4>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
868 <b>ls</b>(<i>dirname=""</i>)
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
869 <p>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
870 Public method to get a directory listing of the connected device.
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
871 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
872
9765
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
873 <dl>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
874
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
875 <dt><i>dirname</i> (str)</dt>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
876 <dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
877 name of the directory to be listed
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
878 </dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
879 </dl>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
880 <dl>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
881 <dt>Return:</dt>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
882 <dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
883 tuple containg the directory listing
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
884 </dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
885 </dl>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
886 <dl>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
887 <dt>Return Type:</dt>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
888 <dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
889 tuple of str
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
890 </dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
891 </dl>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
892 <dl>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
893
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
894 <dt>Raises <b>OSError</b>:</dt>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
895 <dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
896 raised to indicate an issue with the device
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
897 </dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
898 </dl>
11186
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
899 <a NAME="MicrobitDevice.putData" ID="MicrobitDevice.putData"></a>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
900 <h4>MicrobitDevice.putData</h4>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
901 <b>putData</b>(<i>deviceFileName, content</i>)
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
902 <p>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
903 Public method to write the given data to the connected device.
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
904 </p>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
905
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
906 <dl>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
907
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
908 <dt><i>deviceFileName</i> (str)</dt>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
909 <dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
910 name of the file to write to
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
911 </dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
912 <dt><i>content</i> (bytes)</dt>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
913 <dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
914 data to write
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
915 </dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
916 </dl>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
917 <dl>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
918 <dt>Return:</dt>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
919 <dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
920 flag indicating success
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
921 </dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
922 </dl>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
923 <dl>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
924 <dt>Return Type:</dt>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
925 <dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
926 bool
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
927 </dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
928 </dl>
9765
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
929 <a NAME="MicrobitDevice.pwd" ID="MicrobitDevice.pwd"></a>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
930 <h4>MicrobitDevice.pwd</h4>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
931 <b>pwd</b>(<i></i>)
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
932 <p>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
933 Public method to get the current directory of the connected device.
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
934 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
935
9765
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
936 <dl>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
937 <dt>Return:</dt>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
938 <dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
939 current directory
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
940 </dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
941 </dl>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
942 <dl>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
943 <dt>Return Type:</dt>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
944 <dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
945 str
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
946 </dd>
6378da868bb0 Reorganized the MicroPython code even more.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9756
diff changeset
947 </dl>
11186
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
948 <a NAME="MicrobitDevice.rm" ID="MicrobitDevice.rm"></a>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
949 <h4>MicrobitDevice.rm</h4>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
950 <b>rm</b>(<i>filename</i>)
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
951 <p>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
952 Public method to remove a file from the connected device.
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
953 </p>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
954
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
955 <dl>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
956
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
957 <dt><i>filename</i> (str)</dt>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
958 <dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
959 name of the file to be removed
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
960 </dd>
c2d18aefef6b Corrected some issues in the 'micro:bit' device class and enhanced the MPy file manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 11177
diff changeset
961 </dl>
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
962 <a NAME="MicrobitDevice.runScript" ID="MicrobitDevice.runScript"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
963 <h4>MicrobitDevice.runScript</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
964 <b>runScript</b>(<i>script</i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
965 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
966 Public method to run the given Python script.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
967 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
968
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
969 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
970
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
971 <dt><i>script</i> (str)</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
972 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
973 script to be executed
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
974 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
975 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
976 <a NAME="MicrobitDevice.setButtons" ID="MicrobitDevice.setButtons"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
977 <h4>MicrobitDevice.setButtons</h4>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
978 <b>setButtons</b>(<i></i>)
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
979 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
980 Public method to enable the supported action buttons.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
981 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
982
9840
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
983 <a NAME="MicrobitDevice.setConnected" ID="MicrobitDevice.setConnected"></a>
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
984 <h4>MicrobitDevice.setConnected</h4>
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
985 <b>setConnected</b>(<i>connected</i>)
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
986 <p>
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
987 Public method to set the connection state.
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
988 </p>
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
989 <p>
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
990 Note: This method can be overwritten to perform actions upon connect
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
991 or disconnect of the device.
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
992 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
993
9840
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
994 <dl>
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
995
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
996 <dt><i>connected</i> (bool)</dt>
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
997 <dd>
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
998 connection state
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
999 </dd>
d41ee69fa69b Updated source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9766
diff changeset
1000 </dl>
11167
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
1001 <a NAME="MicrobitDevice.supportsDeviceScan" ID="MicrobitDevice.supportsDeviceScan"></a>
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
1002 <h4>MicrobitDevice.supportsDeviceScan</h4>
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
1003 <b>supportsDeviceScan</b>(<i></i>)
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
1004 <p>
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
1005 Public method to indicate, that the Bluetooth implementation supports
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
1006 scanning for devices.
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
1007 </p>
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
1008
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
1009 <dl>
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
1010 <dt>Return:</dt>
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
1011 <dd>
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
1012 flag indicating that the scanning function is supported
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
1013 </dd>
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
1014 </dl>
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
1015 <dl>
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
1016 <dt>Return Type:</dt>
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
1017 <dd>
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
1018 bool
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
1019 </dd>
a3f5af773bc7 MicroPython
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10684
diff changeset
1020 </dl>
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1021 <div align="right"><a href="#top">Up</a></div>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1022 <hr />
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1023 <hr />
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1024 <a NAME="createDevice" ID="createDevice"></a>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1025 <h2>createDevice</h2>
10684
58c7f23ae1cb Regenerated source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10479
diff changeset
1026 <b>createDevice</b>(<i>microPythonWidget, deviceType, _vid, _pid, _boardName, serialNumber</i>)
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1027 <p>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1028 Function to instantiate a MicroPython device object.
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1029 </p>
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
1030
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1031 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1032
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1033 <dt><i>microPythonWidget</i> (MicroPythonWidget)</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1034 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1035 reference to the main MicroPython widget
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1036 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1037 <dt><i>deviceType</i> (str)</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1038 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1039 device type assigned to this device interface
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1040 </dd>
10684
58c7f23ae1cb Regenerated source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10479
diff changeset
1041 <dt><i>_vid</i> (int)</dt>
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1042 <dd>
10684
58c7f23ae1cb Regenerated source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10479
diff changeset
1043 vendor ID (unused)
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1044 </dd>
10684
58c7f23ae1cb Regenerated source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10479
diff changeset
1045 <dt><i>_pid</i> (int)</dt>
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1046 <dd>
10684
58c7f23ae1cb Regenerated source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10479
diff changeset
1047 product ID (unused)
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1048 </dd>
10684
58c7f23ae1cb Regenerated source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10479
diff changeset
1049 <dt><i>_boardName</i> (str)</dt>
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1050 <dd>
10684
58c7f23ae1cb Regenerated source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 10479
diff changeset
1051 name of the board (unused)
9756
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1052 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1053 <dt><i>serialNumber</i> (str)</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1054 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1055 serial number of the board
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1056 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1057 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1058 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1059 <dt>Return:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1060 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1061 reference to the instantiated device object
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1062 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1063 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1064 <dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1065 <dt>Return Type:</dt>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1066 <dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1067 MicrobitDevice
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1068 </dd>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1069 </dl>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1070 <div align="right"><a href="#top">Up</a></div>
9854647c8c5c Reorganized the MicroPython package.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1071 <hr />
10479
856476537696 Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 9864
diff changeset
1072 </body></html>

eric ide

mercurial