370 <p> |
374 <p> |
371 Public method to enable the supported action buttons. |
375 Public method to enable the supported action buttons. |
372 </p> |
376 </p> |
373 <div align="right"><a href="#top">Up</a></div> |
377 <div align="right"><a href="#top">Up</a></div> |
374 <hr /> |
378 <hr /> |
|
379 <hr /> |
|
380 <a NAME="createDevice" ID="createDevice"></a> |
|
381 <h2>createDevice</h2> |
|
382 <b>createDevice</b>(<i>microPythonWidget, deviceType, vid, pid</i>) |
|
383 |
|
384 <p> |
|
385 Function to instantiate a MicroPython device object. |
|
386 </p> |
|
387 <dl> |
|
388 |
|
389 <dt><i>microPythonWidget</i> (MicroPythonWidget)</dt> |
|
390 <dd> |
|
391 reference to the main MicroPython widget |
|
392 </dd> |
|
393 <dt><i>deviceType</i> (str)</dt> |
|
394 <dd> |
|
395 device type assigned to this device interface |
|
396 </dd> |
|
397 <dt><i>vid</i> (int)</dt> |
|
398 <dd> |
|
399 vendor ID |
|
400 </dd> |
|
401 <dt><i>pid</i> (int)</dt> |
|
402 <dd> |
|
403 product ID |
|
404 </dd> |
|
405 </dl> |
|
406 <dl> |
|
407 <dt>Return:</dt> |
|
408 <dd> |
|
409 reference to the instantiated device object |
|
410 </dd> |
|
411 </dl> |
|
412 <dl> |
|
413 <dt>Return Type:</dt> |
|
414 <dd> |
|
415 RP2040Device |
|
416 </dd> |
|
417 </dl> |
|
418 <div align="right"><a href="#top">Up</a></div> |
|
419 <hr /> |
375 </body></html> |
420 </body></html> |