Skip to content

Commit 2455291

Browse files
committed
samples: button: add a note about the input subsystem and samples
The button sample is really a gpio interrupt sample, one may easily miss the debounced driver and think it's not provided. Add a note in the basic button sample documentation to refer to the input subsystem doc and sample. Signed-off-by: Fabio Baltieri <[email protected]>
1 parent 2b2a0e0 commit 2455291

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

samples/basic/button/README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ Overview
1010
A simple button demo showcasing the use of GPIO input with interrupts.
1111
The sample prints a message to the console each time a button is pressed.
1212

13+
.. NOTE:: If you are looking into an implementation of button events with
14+
debouncing, check out :ref:`input` and :zephyr:code-sample:`input-dump`
15+
instead.
16+
1317
Requirements
1418
************
1519

0 commit comments

Comments
 (0)