eric6/Documentation/Source/eric6.MicroPython.MicrobitDevices.html

changeset 7299
a22b87b46128
parent 7273
391d6b7b1eff
child 7336
0095e231ddaf
equal deleted inserted replaced
7298:9d15757d06ac 7299:a22b87b46128
71 <tr> 71 <tr>
72 <td><a href="#MicrobitDevice.__init__">MicrobitDevice</a></td> 72 <td><a href="#MicrobitDevice.__init__">MicrobitDevice</a></td>
73 <td>Constructor</td> 73 <td>Constructor</td>
74 </tr> 74 </tr>
75 <tr> 75 <tr>
76 <td><a href="#MicrobitDevice.__flashCustomMicroPython">__flashCustomMicroPython</a></td>
77 <td>Private slot to flash a custom MicroPython firmware to the device.</td>
78 </tr>
79 <tr>
80 <td><a href="#MicrobitDevice.__flashMicroPython">__flashMicroPython</a></td> 76 <td><a href="#MicrobitDevice.__flashMicroPython">__flashMicroPython</a></td>
81 <td>Private slot to flash the default MicroPython firmware to the device.</td> 77 <td>Private slot to flash the default MicroPython firmware to the device.</td>
82 </tr> 78 </tr>
83 <tr> 79 <tr>
84 <td><a href="#MicrobitDevice.__flashScript">__flashScript</a></td>
85 <td>Private slot to flash the current script onto the selected device.</td>
86 </tr>
87 <tr>
88 <td><a href="#MicrobitDevice.__installUflashTool">__installUflashTool</a></td>
89 <td>Private slot to install the uflash package via pip.</td>
90 </tr>
91 <tr>
92 <td><a href="#MicrobitDevice.__resetDevice">__resetDevice</a></td> 80 <td><a href="#MicrobitDevice.__resetDevice">__resetDevice</a></td>
93 <td>Private slot to reset the connected device.</td> 81 <td>Private slot to reset the connected device.</td>
94 </tr> 82 </tr>
95 <tr> 83 <tr>
96 <td><a href="#MicrobitDevice.__saveMain">__saveMain</a></td> 84 <td><a href="#MicrobitDevice.__saveMain">__saveMain</a></td>
97 <td>Private slot to copy the current script as 'main.py' onto the connected device.</td> 85 <td>Private slot to copy the current script as 'main.py' onto the connected device.</td>
86 </tr>
87 <tr>
88 <td><a href="#MicrobitDevice.__saveScriptToDevice">__saveScriptToDevice</a></td>
89 <td>Private method to save the current script onto the connected device.</td>
98 </tr> 90 </tr>
99 <tr> 91 <tr>
100 <td><a href="#MicrobitDevice.addDeviceMenuEntries">addDeviceMenuEntries</a></td> 92 <td><a href="#MicrobitDevice.addDeviceMenuEntries">addDeviceMenuEntries</a></td>
101 <td>Public method to add device specific entries to the given menu.</td> 93 <td>Public method to add device specific entries to the given menu.</td>
102 </tr> 94 </tr>
167 <dt><i>parent</i> (QObject)</dt> 159 <dt><i>parent</i> (QObject)</dt>
168 <dd> 160 <dd>
169 reference to the parent object 161 reference to the parent object
170 </dd> 162 </dd>
171 </dl> 163 </dl>
172 <a NAME="MicrobitDevice.__flashCustomMicroPython" ID="MicrobitDevice.__flashCustomMicroPython"></a>
173 <h4>MicrobitDevice.__flashCustomMicroPython</h4>
174 <b>__flashCustomMicroPython</b>(<i></i>)
175
176 <p>
177 Private slot to flash a custom MicroPython firmware to the device.
178 </p>
179 <a NAME="MicrobitDevice.__flashMicroPython" ID="MicrobitDevice.__flashMicroPython"></a> 164 <a NAME="MicrobitDevice.__flashMicroPython" ID="MicrobitDevice.__flashMicroPython"></a>
180 <h4>MicrobitDevice.__flashMicroPython</h4> 165 <h4>MicrobitDevice.__flashMicroPython</h4>
181 <b>__flashMicroPython</b>(<i></i>) 166 <b>__flashMicroPython</b>(<i></i>)
182 167
183 <p> 168 <p>
184 Private slot to flash the default MicroPython firmware to the device. 169 Private slot to flash the default MicroPython firmware to the device.
185 </p> 170 </p>
186 <a NAME="MicrobitDevice.__flashScript" ID="MicrobitDevice.__flashScript"></a>
187 <h4>MicrobitDevice.__flashScript</h4>
188 <b>__flashScript</b>(<i></i>)
189
190 <p>
191 Private slot to flash the current script onto the selected device.
192 </p>
193 <a NAME="MicrobitDevice.__installUflashTool" ID="MicrobitDevice.__installUflashTool"></a>
194 <h4>MicrobitDevice.__installUflashTool</h4>
195 <b>__installUflashTool</b>(<i></i>)
196
197 <p>
198 Private slot to install the uflash package via pip.
199 </p>
200 <a NAME="MicrobitDevice.__resetDevice" ID="MicrobitDevice.__resetDevice"></a> 171 <a NAME="MicrobitDevice.__resetDevice" ID="MicrobitDevice.__resetDevice"></a>
201 <h4>MicrobitDevice.__resetDevice</h4> 172 <h4>MicrobitDevice.__resetDevice</h4>
202 <b>__resetDevice</b>(<i></i>) 173 <b>__resetDevice</b>(<i></i>)
203 174
204 <p> 175 <p>
210 181
211 <p> 182 <p>
212 Private slot to copy the current script as 'main.py' onto the 183 Private slot to copy the current script as 'main.py' onto the
213 connected device. 184 connected device.
214 </p> 185 </p>
186 <a NAME="MicrobitDevice.__saveScriptToDevice" ID="MicrobitDevice.__saveScriptToDevice"></a>
187 <h4>MicrobitDevice.__saveScriptToDevice</h4>
188 <b>__saveScriptToDevice</b>(<i>scriptName=""</i>)
189
190 <p>
191 Private method to save the current script onto the connected
192 device.
193 </p>
194 <dl>
195
196 <dt><i>scriptName</i> (str)</dt>
197 <dd>
198 name of the file on the device
199 </dd>
200 </dl>
215 <a NAME="MicrobitDevice.addDeviceMenuEntries" ID="MicrobitDevice.addDeviceMenuEntries"></a> 201 <a NAME="MicrobitDevice.addDeviceMenuEntries" ID="MicrobitDevice.addDeviceMenuEntries"></a>
216 <h4>MicrobitDevice.addDeviceMenuEntries</h4> 202 <h4>MicrobitDevice.addDeviceMenuEntries</h4>
217 <b>addDeviceMenuEntries</b>(<i>menu</i>) 203 <b>addDeviceMenuEntries</b>(<i>menu</i>)
218 204
219 <p> 205 <p>

eric ide

mercurial