derico 0.1.0

Generic state debouncer for complete graphs
Documentation
  • Coverage
  • 0%
    0 out of 17 items documented0 out of 12 items with examples
  • Size
  • Source code size: 56.64 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.81 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 18s Average build duration of successful builds.
  • all releases: 18s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • tstorch/derico
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tstorch

derico

Generic state debouncer for complete graphs. This lib also includes a pin debouncer for embedded programming.

The name of this lib is derived from replacing bounce in debounce with ricochet and shorten it. Don't look down on me. I'm not very creative.

Description

The generic debouncer takes as generic arguments a state enum, e.g. High and Low, and a number type, i.e. must have a one and can be added (for the pin debouncer this simplt is u8).

The debouncer will emit an edge, when a debounced transition happens. When polling the state, the debouncer will change internal state, if the same state was returned more often than a certain threshold consecutively. A state transition will not be emitted, if the "transistion" is from a state to the same state.