Nordic
Detect a digital input transition and produce exactly one application-level response per deliberate event.
Applies when
Use when bringing up buttons, switches, digital sensors, interrupt-driven inputs, or any Nordic feature where an external state transition must reliably reach the application.
Show pattern details
Hide pattern details
Intent
Inspect the workspace, identify or configure an appropriate digital input, detect deliberate state changes using the project-appropriate interrupt or event mechanism, and produce an observable response for each accepted event.
Expectation
Each deliberate input event is detected once and produces the expected application response without missed events, duplicate events, or spurious triggers during the test window.
Success criteria
The configured number of deliberate input events produces the same number of accepted application events, with no unexplained duplicates or misses and no runtime instability.
How it is verified
Trigger the input a known number of times while capturing application event logs and, where useful, a visible response such as an LED toggle. Compare deliberate physical transitions with accepted events. If bounce or noise is suspected, use a logic analyzer as supporting evidence rather than assuming every electrical edge should become an application event.