Browse Source

Merge pull request #6 from ImplFerris/e-ink-update

updated embedded-hal-bus for e-ink
main
impl Ferris 11 months ago
committed by GitHub
parent
commit
8228d3ff65
3 changed files with 17 additions and 17 deletions
  1. +2
    -2
      Cargo.lock
  2. +14
    -14
      Cargo.toml
  3. +1
    -1
      src/bin/main.rs

+ 2
- 2
Cargo.lock View File

@ -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",

+ 14
- 14
Cargo.toml View File

@ -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

+ 1
- 1
src/bin/main.rs View File

@ -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(

Loading…
Cancel
Save