pub struct DebouncedInputPin<T: InputPin, A> {
pub pin: T,
/* private fields */
}
Expand description
A debounced input pin.
Implements approach 1 from here (archived 2018-09-03).
Requires update()
to be called every ~1ms.
Fields§
§pin: T
The wrapped pin.
Implementations§
Trait Implementations§
Source§impl<T: InputPin> Debounce for DebouncedInputPin<T, ActiveHigh>
impl<T: InputPin> Debounce for DebouncedInputPin<T, ActiveHigh>
Source§impl<T: InputPin> InputPin for DebouncedInputPin<T, ActiveHigh>
impl<T: InputPin> InputPin for DebouncedInputPin<T, ActiveHigh>
Auto Trait Implementations§
impl<T, A> Freeze for DebouncedInputPin<T, A>where
T: Freeze,
impl<T, A> RefUnwindSafe for DebouncedInputPin<T, A>where
T: RefUnwindSafe,
A: RefUnwindSafe,
impl<T, A> Send for DebouncedInputPin<T, A>
impl<T, A> Sync for DebouncedInputPin<T, A>
impl<T, A> Unpin for DebouncedInputPin<T, A>
impl<T, A> UnwindSafe for DebouncedInputPin<T, A>where
T: UnwindSafe,
A: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more