457 <p> |
461 <p> |
458 Public method to enable the supported action buttons. |
462 Public method to enable the supported action buttons. |
459 </p> |
463 </p> |
460 <div align="right"><a href="#top">Up</a></div> |
464 <div align="right"><a href="#top">Up</a></div> |
461 <hr /> |
465 <hr /> |
|
466 <hr /> |
|
467 <a NAME="createDevice" ID="createDevice"></a> |
|
468 <h2>createDevice</h2> |
|
469 <b>createDevice</b>(<i>microPythonWidget, deviceType, vid, pid</i>) |
|
470 |
|
471 <p> |
|
472 Function to instantiate a MicroPython device object. |
|
473 </p> |
|
474 <dl> |
|
475 |
|
476 <dt><i>microPythonWidget</i> (MicroPythonWidget)</dt> |
|
477 <dd> |
|
478 reference to the main MicroPython widget |
|
479 </dd> |
|
480 <dt><i>deviceType</i> (str)</dt> |
|
481 <dd> |
|
482 device type assigned to this device interface |
|
483 </dd> |
|
484 <dt><i>vid</i> (int)</dt> |
|
485 <dd> |
|
486 vendor ID |
|
487 </dd> |
|
488 <dt><i>pid</i> (int)</dt> |
|
489 <dd> |
|
490 product ID |
|
491 </dd> |
|
492 </dl> |
|
493 <dl> |
|
494 <dt>Return:</dt> |
|
495 <dd> |
|
496 reference to the instantiated device object |
|
497 </dd> |
|
498 </dl> |
|
499 <dl> |
|
500 <dt>Return Type:</dt> |
|
501 <dd> |
|
502 EspDevice |
|
503 </dd> |
|
504 </dl> |
|
505 <div align="right"><a href="#top">Up</a></div> |
|
506 <hr /> |
462 </body></html> |
507 </body></html> |