Skip to content

Commit

Permalink
update to embedded-hal 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tomried committed Nov 29, 2024
1 parent 14b3a74 commit 3ee31e6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ readme = "README.md"
repository = "https://github.com/ost-ing/rotary-encoder-embedded"

[dependencies]
embedded-hal = { version = "0.2.7", features = ["unproven"] }
embedded-hal = { version = "1.0.0"}

[dev-dependencies]
embedded-hal-mock = { version = "0.10.0", features = ["eh0"] }
embedded-hal-mock = { version = "0.11.*", features = ["eh1"] }
2 changes: 1 addition & 1 deletion src/angular_velocity.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use embedded_hal::digital::v2::InputPin;
use embedded_hal::digital::InputPin;

use crate::Direction;
use crate::RotaryEncoder;
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#![deny(warnings)]
#![no_std]

use embedded_hal::digital::v2::InputPin;
use embedded_hal::digital::InputPin;

/// Angular velocity api
pub mod angular_velocity;
Expand Down Expand Up @@ -77,7 +77,7 @@ mod test {
use crate::{
angular_velocity::AngularVelocityMode, standard::StandardMode, Direction, RotaryEncoder,
};
use embedded_hal_mock::eh0::pin::{Mock, State, Transaction};
use embedded_hal_mock::eh1::digital::{Mock, State, Transaction};

#[test]
fn standard_mode_api() {
Expand Down
2 changes: 1 addition & 1 deletion src/standard.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use embedded_hal::digital::v2::InputPin;
use embedded_hal::digital::InputPin;

use crate::Direction;
use crate::RotaryEncoder;
Expand Down

0 comments on commit 3ee31e6

Please sign in to comment.