Debouncer

class Debouncer(dt: Double)

A simple debounce filter for boolean streams. Requires that the boolean change value from baseline for a specified period of time before the filtered value changes.

Constructors

Link copied to clipboard
fun Debouncer(dt: Double)

Functions

Link copied to clipboard
fun calculate(input: Boolean): Boolean

Applies the debouncer to the input stream.