feat(trait): remove StaticPinOps

This commit is contained in:
doryan 2025-04-25 13:40:06 +04:00
parent 9f781497d8
commit 1fb1c3d573

View File

@ -1,26 +1,5 @@
#![no_std] #![no_std]
pub use static_pins_macros::*;
pub trait StaticPinOps {
type Port;
const PIN_NUM: u8;
const PIN_POS: u8;
fn into_input();
fn into_output();
fn into_output_high();
fn into_pull_up_input();
fn write(data: u8);
fn read() -> u8;
fn is_low() -> bool;
fn is_high() -> bool;
fn set_low();
fn set_high();
}
use arduino_hal::{hal::port::*, pac::*}; use arduino_hal::{hal::port::*, pac::*};
use static_pins_macros::impl_static_pin; use static_pins_macros::impl_static_pin;