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> |