845 <div align="right"><a href="#top">Up</a></div> |
845 <div align="right"><a href="#top">Up</a></div> |
846 <hr /> |
846 <hr /> |
847 <hr /> |
847 <hr /> |
848 <a NAME="createDevice" ID="createDevice"></a> |
848 <a NAME="createDevice" ID="createDevice"></a> |
849 <h2>createDevice</h2> |
849 <h2>createDevice</h2> |
850 <b>createDevice</b>(<i>microPythonWidget, deviceType, vid, pid, boardName, serialNumber</i>) |
850 <b>createDevice</b>(<i>microPythonWidget, deviceType, _vid, _pid, _boardName, serialNumber</i>) |
851 <p> |
851 <p> |
852 Function to instantiate a MicroPython device object. |
852 Function to instantiate a MicroPython device object. |
853 </p> |
853 </p> |
854 |
854 |
855 <dl> |
855 <dl> |
860 </dd> |
860 </dd> |
861 <dt><i>deviceType</i> (str)</dt> |
861 <dt><i>deviceType</i> (str)</dt> |
862 <dd> |
862 <dd> |
863 device type assigned to this device interface |
863 device type assigned to this device interface |
864 </dd> |
864 </dd> |
865 <dt><i>vid</i> (int)</dt> |
865 <dt><i>_vid</i> (int)</dt> |
866 <dd> |
866 <dd> |
867 vendor ID |
867 vendor ID (unused) |
868 </dd> |
868 </dd> |
869 <dt><i>pid</i> (int)</dt> |
869 <dt><i>_pid</i> (int)</dt> |
870 <dd> |
870 <dd> |
871 product ID |
871 product ID (unused) |
872 </dd> |
872 </dd> |
873 <dt><i>boardName</i> (str)</dt> |
873 <dt><i>_boardName</i> (str)</dt> |
874 <dd> |
874 <dd> |
875 name of the board |
875 name of the board (unused) |
876 </dd> |
876 </dd> |
877 <dt><i>serialNumber</i> (str)</dt> |
877 <dt><i>serialNumber</i> (str)</dt> |
878 <dd> |
878 <dd> |
879 serial number of the board |
879 serial number of the board |
880 </dd> |
880 </dd> |