wezm / ssd1675

Rust driver for SSD1675 e-Paper display controller
Apache License 2.0
63 stars 14 forks source link

Example is broken #23

Open gleich opened 2 years ago

gleich commented 2 years ago

Running on a fresh install of raspberry pi OS, with only SPI, I2C, and SSH being abled I am getting the following panic when I try running the example code:

thread 'main' panicked at 'cs export: Io(Os { code: 16, kind: ResourceBusy, message: "Device or resource busy" })', examples/raspberry_pi_inky_phat.rs:67:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The only device is the phat that I have sitting on top of the pi. Is there any reason that this might not be working?

thinkier commented 1 year ago

Comment out the following, the pin is probably locked out by the spi driver:

// cs.export().expect("cs export");
// while !cs.is_exported() {}
// cs.set_direction(Direction::Out).expect("CS Direction");
// cs.set_value(1).expect("CS Value set to 1");
RaulTrombin commented 8 months ago

@gleich Which kernel are you using? I noticed some issues when use the 6.x kernel.

Idkw, but in the previous ones I don't have this issue.