From b594144f9e096d00d81b514373d2fc568116e84c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Fri, 7 Jul 2023 08:54:02 +0200 Subject: [PATCH] Update embedded-hal and display-interface --- Cargo.toml | 10 +++++----- src/test_helpers.rs | 12 ------------ 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 361f62f8..4fade1a6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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-alpha.11" +embedded-hal-async = { version = "0.2.0-alpha.2", optional = true } +display-interface = { git = "https://github.com/bugadani/display-interface.git", branch = "ehal1" } +display-interface-i2c = { git = "https://github.com/bugadani/display-interface.git", branch = "ehal1" } +display-interface-spi = { git = "https://github.com/bugadani/display-interface.git", branch = "ehal1" } embedded-graphics-core = { version = "0.4.0", optional = true } [dev-dependencies] diff --git a/src/test_helpers.rs b/src/test_helpers.rs index 6515cf65..67d9bb31 100644 --- a/src/test_helpers.rs +++ b/src/test_helpers.rs @@ -16,18 +16,6 @@ impl spi::ErrorType for SpiStub { type Error = Infallible; } -impl spi::SpiDeviceWrite for SpiStub { - fn write_transaction(&mut self, _operations: &[&[u8]]) -> Result<(), Self::Error> { - todo!() - } -} - -impl spi::SpiDeviceRead for SpiStub { - fn read_transaction(&mut self, _operations: &mut [&mut [u8]]) -> Result<(), Self::Error> { - todo!() - } -} - impl spi::SpiDevice for SpiStub { fn transaction( &mut self,