Skip to content

Commit 02d8f15

Browse files
committed
Add more tips on implement double press detection.
- Add note about using finite timeout period for `k_event_wait()`. - Add note about using a dedicated thread for this operation. Closes #11
1 parent d189995 commit 02d8f15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labs/zephyr-threads-events-lab.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ button press).
110110
500 ms of each other.
111111

112112
::: callout-tip
113-
One implementation scheme for this functionality could include use of atomic variables, timers and kernel events.
113+
One implementation scheme for this functionality could include use of atomic variables, kernel events, and a finite timeout period for `k_event_wait()`. You may even want to leverage a dedicated thread for this operation.
114114

115115
A new atomic function that may help you is [`atomic_inc()`](https://docs.zephyrproject.org/latest/doxygen/html/group__atomic__apis.html#gaae47a9cbe5a6534967b417f602b37ac2).
116116
:::

0 commit comments

Comments
 (0)