Skip to content

Commit

Permalink
Update embedded-hal and display-interface
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Oct 22, 2023
1 parent f0a91f6 commit 1612567
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ circle-ci = { repository = "jamwaffles/ssd1306", branch = "master" }
targets = [ "thumbv7m-none-eabi", "thumbv7em-none-eabihf" ]

[dependencies]
embedded-hal = "1.0.0-alpha.10"
embedded-hal-async = { version = "0.2.0-alpha.0", optional = true }
display-interface = { git = "https://github.com/bugadani/display-interface.git", branch = "async" }
display-interface-i2c = { git = "https://github.com/bugadani/display-interface.git", branch = "async" }
display-interface-spi = { git = "https://github.com/bugadani/display-interface.git", branch = "async" }
embedded-hal = "1.0.0-rc.1"
embedded-hal-async = { version = "1.0.0-rc.1", optional = true }
display-interface = { git = "https://github.com/therealprof/display-interface.git" }
display-interface-i2c = { git = "https://github.com/therealprof/display-interface.git" }
display-interface-spi = { git = "https://github.com/therealprof/display-interface.git" }
embedded-graphics-core = { version = "0.4.0", optional = true }

[dev-dependencies]
Expand All @@ -43,8 +43,8 @@ stm32f1xx-hal = { version = "0.10.0", features = [ "rt", "stm32f103" ] }
[features]
default = ["graphics"]
graphics = ["embedded-graphics-core"]
async = ["display-interface-spi/async", "display-interface/async", "embedded-hal-async"]
nightly = ["display-interface-spi/nightly"]
async = ["display-interface-spi/async", "display-interface-i2c/async", "display-interface/async", "embedded-hal-async"]
nightly = ["display-interface-spi/nightly", "display-interface-i2c/nightly"]

[profile.dev]
codegen-units = 1
Expand Down
12 changes: 0 additions & 12 deletions src/test_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,6 @@ impl spi::ErrorType for SpiStub {
type Error = Infallible;
}

impl spi::SpiDeviceWrite<u8> for SpiStub {
fn write_transaction(&mut self, _operations: &[&[u8]]) -> Result<(), Self::Error> {
todo!()
}
}

impl spi::SpiDeviceRead<u8> for SpiStub {
fn read_transaction(&mut self, _operations: &mut [&mut [u8]]) -> Result<(), Self::Error> {
todo!()
}
}

impl spi::SpiDevice<u8> for SpiStub {
fn transaction(
&mut self,
Expand Down

0 comments on commit 1612567

Please sign in to comment.