diff --git a/src/lib.rs b/src/lib.rs index 842482d..3c6b82d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,7 +4,6 @@ use core::marker::PhantomData; use arduino_hal::{ delay_us, - pac::EXINT, port::{ mode::{Input, PullUp}, Pin, PinOps, @@ -42,10 +41,7 @@ where P: PinOps + StaticPinOps, { #[inline] - pub fn new(_pin: Pin, P>, exint: &EXINT) -> Self { - exint.eimsk.write(|w| w.bits(1 << 1)); - exint.eicra.write(|w| unsafe { w.bits(!(1 << 3 | 1 << 2)) }); - + pub fn new(_pin: Pin, P>) -> Self { Self { _pin: PhantomData {}, }