414 <div align="right"><a href="#top">Up</a></div> |
414 <div align="right"><a href="#top">Up</a></div> |
415 <hr /> |
415 <hr /> |
416 <hr /> |
416 <hr /> |
417 <a NAME="createDevice" ID="createDevice"></a> |
417 <a NAME="createDevice" ID="createDevice"></a> |
418 <h2>createDevice</h2> |
418 <h2>createDevice</h2> |
419 <b>createDevice</b>(<i>microPythonWidget, deviceType, vid, pid, boardName, serialNumber</i>) |
419 <b>createDevice</b>(<i>microPythonWidget, deviceType, _vid, _pid, _boardName, _serialNumber</i>) |
420 <p> |
420 <p> |
421 Function to instantiate a MicroPython device object. |
421 Function to instantiate a MicroPython device object. |
422 </p> |
422 </p> |
423 |
423 |
424 <dl> |
424 <dl> |
429 </dd> |
429 </dd> |
430 <dt><i>deviceType</i> (str)</dt> |
430 <dt><i>deviceType</i> (str)</dt> |
431 <dd> |
431 <dd> |
432 device type assigned to this device interface |
432 device type assigned to this device interface |
433 </dd> |
433 </dd> |
434 <dt><i>vid</i> (int)</dt> |
434 <dt><i>_vid</i> (int)</dt> |
435 <dd> |
435 <dd> |
436 vendor ID |
436 vendor ID (unused) |
437 </dd> |
437 </dd> |
438 <dt><i>pid</i> (int)</dt> |
438 <dt><i>_pid</i> (int)</dt> |
439 <dd> |
439 <dd> |
440 product ID |
440 product ID (unused) |
441 </dd> |
441 </dd> |
442 <dt><i>boardName</i> (str)</dt> |
442 <dt><i>_boardName</i> (str)</dt> |
443 <dd> |
443 <dd> |
444 name of the board |
444 name of the board (unused) |
445 </dd> |
445 </dd> |
446 <dt><i>serialNumber</i> (str)</dt> |
446 <dt><i>_serialNumber</i> (str)</dt> |
447 <dd> |
447 <dd> |
448 serial number of the board |
448 serial number of the board (unused) |
449 </dd> |
449 </dd> |
450 </dl> |
450 </dl> |
451 <dl> |
451 <dl> |
452 <dt>Return:</dt> |
452 <dt>Return:</dt> |
453 <dd> |
453 <dd> |