From c57a5282d7d123fc6cc3788c364800ded7bdc5aa Mon Sep 17 00:00:00 2001 From: ImplFerris Date: Thu, 13 Nov 2025 18:03:10 +0530 Subject: [PATCH] updated embedded-hal-bus for e-ink --- Cargo.lock | 4 ++-- Cargo.toml | 28 ++++++++++++++-------------- src/bin/main.rs | 2 +- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2355d63..0a271e5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -452,9 +452,9 @@ dependencies = [ [[package]] name = "embedded-hal-bus" -version = "0.1.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57b4e6ede84339ebdb418cd986e6320a34b017cdf99b5cc3efceec6450b06886" +checksum = "513e0b3a8fb7d3013a8ae17a834283f170deaf7d0eeab0a7c1a36ad4dd356d22" dependencies = [ "critical-section", "embedded-hal 1.0.0", diff --git a/Cargo.toml b/Cargo.toml index 72bdf56..a2489d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,8 @@ [package] -edition = "2024" -name = "e-ink-hello" +edition = "2024" +name = "e-ink-hello" rust-version = "1.88" -version = "0.1.0" +version = "0.1.0" [[bin]] name = "e-ink-hello" @@ -13,20 +13,20 @@ esp-hal = { version = "1.0.0", features = ["defmt", "esp32", "unstable"] } esp-rtos = { version = "0.2.0", features = ["defmt", "embassy", "esp32"] } -defmt = "1.0.1" +defmt = "1.0.1" esp-bootloader-esp-idf = { version = "0.4.0", features = ["defmt", "esp32"] } embassy-executor = { version = "0.9.1", features = ["defmt"] } -embassy-time = { version = "0.5.0", features = ["defmt"] } -esp-println = { version = "0.16.1", features = ["defmt-espflash", "esp32"] } +embassy-time = { version = "0.5.0", features = ["defmt"] } +esp-println = { version = "0.16.1", features = ["defmt-espflash", "esp32"] } critical-section = "1.2.0" -static_cell = "2.1.1" +static_cell = "2.1.1" epd-waveshare = { features = [ "graphics", ], git = "https://github.com/ImplFerris/epd-waveshare", branch = "1in54_v2_fix" } -embedded-hal-bus = { version = "0.1" } +embedded-hal-bus = { version = "0.3" } embedded-graphics = "0.8.1" @@ -36,10 +36,10 @@ embedded-graphics = "0.8.1" opt-level = "s" [profile.release] -codegen-units = 1 # LLVM can perform better optimizations using a single thread -debug = 2 +codegen-units = 1 # LLVM can perform better optimizations using a single thread +debug = 2 debug-assertions = false -incremental = false -lto = 'fat' -opt-level = 's' -overflow-checks = false +incremental = false +lto = 'fat' +opt-level = 's' +overflow-checks = false diff --git a/src/bin/main.rs b/src/bin/main.rs index f4d485e..0234419 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -68,7 +68,7 @@ async fn main(spawner: Spawner) -> ! { .with_mosi(peripherals.GPIO23); let cs = Output::new(peripherals.GPIO33, Level::Low, OutputConfig::default()); - let mut spi_dev = ExclusiveDevice::new(spi_bus, cs, Delay); + let mut spi_dev = ExclusiveDevice::new(spi_bus, cs, Delay).unwrap(); // Initialize Display let busy_in = Input::new(