From c0589d6868782a1eddafcc28fe4cbd8167ab7008 Mon Sep 17 00:00:00 2001 From: Claas Date: Sun, 17 Nov 2024 14:14:56 +0100 Subject: [PATCH] Improve documentation --- fan-controller/src/debounce.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fan-controller/src/debounce.rs b/fan-controller/src/debounce.rs index 908aa75..c3f1814 100644 --- a/fan-controller/src/debounce.rs +++ b/fan-controller/src/debounce.rs @@ -1,9 +1,10 @@ use embassy_rp::gpio::{Input, Level, Pin}; use embassy_time::{with_timeout, Duration, TimeoutError, Timer}; -///! Debouncer from Embassy examples https://github.com/embassy-rs/embassy/blob/8d8cd78f634b2f435e3a997f7f8f3ac0b8ca300c/examples/rp/src/bin/debounce.rs -///! Licensed MIT/Apache-2.0 -/// Extended with debounce for falling edge +/// Debouncer based on [Embassy debounce example](https://github.com/embassy-rs/embassy/blob/8d8cd78f634b2f435e3a997f7f8f3ac0b8ca300c/examples/rp/src/bin/debounce.rs) +/// (Licensed MIT/Apache-2.0) +/// and extended with debounce for falling edge +/// pub struct Debouncer<'a, T: Pin> { input: Input<'a, T>, debounce: Duration, -- 2.51.2