From 732b57fc97a2027049d4fbd300e9461bdd31b39a Mon Sep 17 00:00:00 2001 From: Andreas Neuhaus Date: Fri, 30 Aug 2024 11:56:51 +0200 Subject: [PATCH] Switch to ssd1306 driver 0.9.0 with embedded-hal 1.0 and async support --- firmware/Cargo.lock | 5 +++-- firmware/Cargo.toml | 6 +----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/firmware/Cargo.lock b/firmware/Cargo.lock index e2d699e..da7e636 100644 --- a/firmware/Cargo.lock +++ b/firmware/Cargo.lock @@ -1206,8 +1206,9 @@ dependencies = [ [[package]] name = "ssd1306" -version = "0.8.4" -source = "git+https://github.com/rust-embedded-community/ssd1306?rev=35ec056c11f2889dd519e554d710a70b37ccf682#35ec056c11f2889dd519e554d710a70b37ccf682" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ed51935bdc6e9e976d3d9a747e768589eaea0cf26f483213bfededc947c8624" dependencies = [ "display-interface", "display-interface-i2c", diff --git a/firmware/Cargo.toml b/firmware/Cargo.toml index f867806..eefe2de 100644 --- a/firmware/Cargo.toml +++ b/firmware/Cargo.toml @@ -55,10 +55,6 @@ esp-println = { version = "0.10", features = ["esp32c3", "log"] } esp-wifi = { version = "0.7", default-features = false, features = ["esp32c3", "async", "phy-enable-usb", "wifi"] } log = { version = "0.4", features = ["release_max_level_info"] } pn532 = "0.4" +ssd1306 = { version = "0.9", features = ["async"] } static_cell = "2.1" u8g2-fonts = "0.4" - -# SSD1306 driver (>0.8.4) with embedded-hal-async 1.0 and display-interface 0.5 support -# See https://github.com/rust-embedded-community/ssd1306/pull/213 -# and https://github.com/rust-embedded-community/ssd1306/pull/214 -ssd1306 = { git = "https://github.com/rust-embedded-community/ssd1306", rev = "35ec056c11f2889dd519e554d710a70b37ccf682", features = ["async"] }