src/eric7/Documentation/Source/eric7.MicroPython.RP2040Devices.html

branch
eric7
changeset 9503
ae9232bf4854
parent 9209
b99e7fd55fd3
child 9738
4ae976ee5339
equal deleted inserted replaced
9502:6091145e189e 9503:ae9232bf4854
27 </tr> 27 </tr>
28 </table> 28 </table>
29 <h3>Functions</h3> 29 <h3>Functions</h3>
30 30
31 <table> 31 <table>
32 <tr><td>None</td></tr> 32
33 <tr>
34 <td><a href="#createDevice">createDevice</a></td>
35 <td>Function to instantiate a MicroPython device object.</td>
36 </tr>
33 </table> 37 </table>
34 <hr /> 38 <hr />
35 <hr /> 39 <hr />
36 <a NAME="RP2040Device" ID="RP2040Device"></a> 40 <a NAME="RP2040Device" ID="RP2040Device"></a>
37 <h2>RP2040Device</h2> 41 <h2>RP2040Device</h2>
370 <p> 374 <p>
371 Public method to enable the supported action buttons. 375 Public method to enable the supported action buttons.
372 </p> 376 </p>
373 <div align="right"><a href="#top">Up</a></div> 377 <div align="right"><a href="#top">Up</a></div>
374 <hr /> 378 <hr />
379 <hr />
380 <a NAME="createDevice" ID="createDevice"></a>
381 <h2>createDevice</h2>
382 <b>createDevice</b>(<i>microPythonWidget, deviceType, vid, pid</i>)
383
384 <p>
385 Function to instantiate a MicroPython device object.
386 </p>
387 <dl>
388
389 <dt><i>microPythonWidget</i> (MicroPythonWidget)</dt>
390 <dd>
391 reference to the main MicroPython widget
392 </dd>
393 <dt><i>deviceType</i> (str)</dt>
394 <dd>
395 device type assigned to this device interface
396 </dd>
397 <dt><i>vid</i> (int)</dt>
398 <dd>
399 vendor ID
400 </dd>
401 <dt><i>pid</i> (int)</dt>
402 <dd>
403 product ID
404 </dd>
405 </dl>
406 <dl>
407 <dt>Return:</dt>
408 <dd>
409 reference to the instantiated device object
410 </dd>
411 </dl>
412 <dl>
413 <dt>Return Type:</dt>
414 <dd>
415 RP2040Device
416 </dd>
417 </dl>
418 <div align="right"><a href="#top">Up</a></div>
419 <hr />
375 </body></html> 420 </body></html>

eric ide

mercurial