618 <div align="right"><a href="#top">Up</a></div> |
618 <div align="right"><a href="#top">Up</a></div> |
619 <hr /> |
619 <hr /> |
620 <hr /> |
620 <hr /> |
621 <a NAME="createDevice" ID="createDevice"></a> |
621 <a NAME="createDevice" ID="createDevice"></a> |
622 <h2>createDevice</h2> |
622 <h2>createDevice</h2> |
623 <b>createDevice</b>(<i>microPythonWidget, deviceType, vid, pid, boardName, serialNumber</i>) |
623 <b>createDevice</b>(<i>microPythonWidget, deviceType, _vid, _pid, _boardName, _serialNumber</i>) |
624 <p> |
624 <p> |
625 Function to instantiate a MicroPython device object. |
625 Function to instantiate a MicroPython device object. |
626 </p> |
626 </p> |
627 |
627 |
628 <dl> |
628 <dl> |
633 </dd> |
633 </dd> |
634 <dt><i>deviceType</i> (str)</dt> |
634 <dt><i>deviceType</i> (str)</dt> |
635 <dd> |
635 <dd> |
636 device type assigned to this device interface |
636 device type assigned to this device interface |
637 </dd> |
637 </dd> |
638 <dt><i>vid</i> (int)</dt> |
638 <dt><i>_vid</i> (int)</dt> |
639 <dd> |
639 <dd> |
640 vendor ID |
640 vendor ID (unused) |
641 </dd> |
641 </dd> |
642 <dt><i>pid</i> (int)</dt> |
642 <dt><i>_pid</i> (int)</dt> |
643 <dd> |
643 <dd> |
644 product ID |
644 product ID (unused) |
645 </dd> |
645 </dd> |
646 <dt><i>boardName</i> (str)</dt> |
646 <dt><i>_boardName</i> (str)</dt> |
647 <dd> |
647 <dd> |
648 name of the board |
648 name of the board (unused) |
649 </dd> |
649 </dd> |
650 <dt><i>serialNumber</i> (str)</dt> |
650 <dt><i>_serialNumber</i> (str)</dt> |
651 <dd> |
651 <dd> |
652 serial number of the board |
652 serial number of the board (unused) |
653 </dd> |
653 </dd> |
654 </dl> |
654 </dl> |
655 <dl> |
655 <dl> |
656 <dt>Return:</dt> |
656 <dt>Return:</dt> |
657 <dd> |
657 <dd> |