21 <body> |
21 <body> |
22 <a NAME="top" ID="top"></a> |
22 <a NAME="top" ID="top"></a> |
23 <h1>eric6.MicroPython.MicrobitDevices</h1> |
23 <h1>eric6.MicroPython.MicrobitDevices</h1> |
24 |
24 |
25 <p> |
25 <p> |
26 Module implementing the device interface class for BBC micro:bit boards. |
26 Module implementing the device interface class for BBC micro:bit and |
|
27 Calliope mini boards. |
27 </p> |
28 </p> |
28 <h3>Global Attributes</h3> |
29 <h3>Global Attributes</h3> |
29 |
30 |
30 <table> |
31 <table> |
31 <tr><td>None</td></tr> |
32 <tr><td>None</td></tr> |
147 <tr><td>None</td></tr> |
148 <tr><td>None</td></tr> |
148 </table> |
149 </table> |
149 |
150 |
150 <a NAME="MicrobitDevice.__init__" ID="MicrobitDevice.__init__"></a> |
151 <a NAME="MicrobitDevice.__init__" ID="MicrobitDevice.__init__"></a> |
151 <h4>MicrobitDevice (Constructor)</h4> |
152 <h4>MicrobitDevice (Constructor)</h4> |
152 <b>MicrobitDevice</b>(<i>microPythonWidget, parent=None</i>) |
153 <b>MicrobitDevice</b>(<i>microPythonWidget, deviceType, parent=None</i>) |
153 |
154 |
154 <p> |
155 <p> |
155 Constructor |
156 Constructor |
156 </p> |
157 </p> |
157 <dl> |
158 <dl> |
158 |
159 |
159 <dt><i>microPythonWidget</i> (MicroPythonWidget)</dt> |
160 <dt><i>microPythonWidget</i> (MicroPythonWidget)</dt> |
160 <dd> |
161 <dd> |
161 reference to the main MicroPython widget |
162 reference to the main MicroPython widget |
|
163 </dd> |
|
164 <dt><i>deviceType</i> (str)</dt> |
|
165 <dd> |
|
166 type of the device |
162 </dd> |
167 </dd> |
163 <dt><i>parent</i> (QObject)</dt> |
168 <dt><i>parent</i> (QObject)</dt> |
164 <dd> |
169 <dd> |
165 reference to the parent object |
170 reference to the parent object |
166 </dd> |
171 </dd> |