mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-11 09:05:07 +00:00
42 lines
757 B
ReStructuredText
42 lines
757 B
ReStructuredText
.. pybricks-requirements:: stm32-extra
|
|
|
|
:mod:`uselect` -- Wait for events
|
|
=================================
|
|
|
|
.. automodule:: uselect
|
|
:no-members:
|
|
|
|
.. rubric:: Poll instance and class
|
|
|
|
.. autofunction:: poll
|
|
|
|
.. autoclass:: Poll
|
|
:no-members:
|
|
|
|
.. automethod:: register
|
|
|
|
.. automethod:: unregister
|
|
|
|
.. automethod:: modify
|
|
|
|
.. automethod:: poll
|
|
|
|
.. automethod:: ipoll
|
|
|
|
.. rubric:: Event mask flags
|
|
|
|
.. autodata:: POLLIN
|
|
|
|
.. autodata:: POLLOUT
|
|
|
|
.. autodata:: POLLERR
|
|
|
|
.. autodata:: POLLHUP
|
|
|
|
Examples
|
|
---------------
|
|
|
|
See the `projects website`_ for a demo that uses this module.
|
|
|
|
.. _projects website: https://pybricks.com/projects/tutorials/wireless/hub-to-device/pc-keyboard/
|