Skip to content

Commit

Permalink
Rename pin module to digital to match embedded-hal (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy-gilligan authored May 16, 2024
1 parent e01d736 commit d7be629
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/eh0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ pub use error::MockError;

pub mod adc;
pub mod delay;
pub mod digital;
pub mod i2c;
pub mod pin;
pub mod serial;
pub mod spi;
#[cfg(feature = "embedded-time")]
Expand Down
2 changes: 1 addition & 1 deletion src/eh0/pin.rs → src/eh0/digital.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//!
//! use embedded_hal::digital::v2::{InputPin, OutputPin};
//! use embedded_hal_mock::eh0::{
//! pin::{Mock as PinMock, State as PinState, Transaction as PinTransaction},
//! digital::{Mock as PinMock, State as PinState, Transaction as PinTransaction},
//! MockError,
//! };
//!
Expand Down
2 changes: 1 addition & 1 deletion src/eh1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ mod error;
pub use crate::eh1::error::MockError;

pub mod delay;
pub mod digital;
pub mod i2c;
pub mod pin;
pub mod pwm;
pub mod serial;
pub mod spi;
2 changes: 1 addition & 1 deletion src/eh1/pin.rs → src/eh1/digital.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//!
//! use embedded_hal::digital::{InputPin, OutputPin};
//! use embedded_hal_mock::eh1::{
//! pin::{Mock as PinMock, State as PinState, Transaction as PinTransaction},
//! digital::{Mock as PinMock, State as PinState, Transaction as PinTransaction},
//! MockError,
//! };
//!
Expand Down

0 comments on commit d7be629

Please sign in to comment.