aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/lang/api/waitforbuttonpress.rst
blob: a5bd45cf79874f5c224bedb228b441efd95248dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.. _lang-waitforbuttonpress:

waitForButtonPress()
====================

Wait for the board's built-in button (labeled BUT on the silkscreen)
to be pressed, possibly with timeout.

Library Documentation
---------------------

.. doxygenfunction:: waitForButtonPress

See Also
--------

- :ref:`Board-specific values <lang-board-values>`
- :ref:`BOARD_BUTTON_PIN <lang-board-values-but>`
- :ref:`lang-isbuttonpressed`