src/eric7/Documentation/Source/eric7.MicroPython.MicrobitDevices.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="MicrobitDevice" ID="MicrobitDevice"></a> 40 <a NAME="MicrobitDevice" ID="MicrobitDevice"></a>
37 <h2>MicrobitDevice</h2> 41 <h2>MicrobitDevice</h2>
435 <p> 439 <p>
436 Public method to enable the supported action buttons. 440 Public method to enable the supported action buttons.
437 </p> 441 </p>
438 <div align="right"><a href="#top">Up</a></div> 442 <div align="right"><a href="#top">Up</a></div>
439 <hr /> 443 <hr />
444 <hr />
445 <a NAME="createDevice" ID="createDevice"></a>
446 <h2>createDevice</h2>
447 <b>createDevice</b>(<i>microPythonWidget, deviceType, vid, pid</i>)
448
449 <p>
450 Function to instantiate a MicroPython device object.
451 </p>
452 <dl>
453
454 <dt><i>microPythonWidget</i> (MicroPythonWidget)</dt>
455 <dd>
456 reference to the main MicroPython widget
457 </dd>
458 <dt><i>deviceType</i> (str)</dt>
459 <dd>
460 device type assigned to this device interface
461 </dd>
462 <dt><i>vid</i> (int)</dt>
463 <dd>
464 vendor ID
465 </dd>
466 <dt><i>pid</i> (int)</dt>
467 <dd>
468 product ID
469 </dd>
470 </dl>
471 <dl>
472 <dt>Return:</dt>
473 <dd>
474 reference to the instantiated device object
475 </dd>
476 </dl>
477 <dl>
478 <dt>Return Type:</dt>
479 <dd>
480 MicrobitDevice
481 </dd>
482 </dl>
483 <div align="right"><a href="#top">Up</a></div>
484 <hr />
440 </body></html> 485 </body></html>

eric ide

mercurial