https://github.com/tfeldmann/rust-schmitttrigger
https://github.com/tfeldmann/rust-schmitttrigger
library rust schmitt-trigger
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/tfeldmann/rust-schmitttrigger
- Owner: tfeldmann
- Created: 2023-01-03T12:07:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-03T12:17:00.000Z (over 3 years ago)
- Last Synced: 2025-03-01T20:02:49.314Z (over 1 year ago)
- Topics: library, rust, schmitt-trigger
- Language: Rust
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rust Schmitt-Trigger library
Basic usage:
```rust
let mut trigger = SchmittTrigger::new(5, 10);
trigger.input(4) // false
trigger.input(12) // true
trigger.input(6) // still true
let result = trigger.output() // true
```
Works with any type that has the PartialEq trait.