Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example is broken #23

Open
gleich opened this issue Apr 15, 2022 · 2 comments
Open

Example is broken #23

gleich opened this issue Apr 15, 2022 · 2 comments

Comments

@gleich
Copy link

gleich commented Apr 15, 2022

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
Copy link

thinkier commented Aug 6, 2023

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
Copy link

RaulTrombin commented Feb 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants