-
Notifications
You must be signed in to change notification settings - Fork 41
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
Add example? #24
Comments
This seems like a good idea. Would you be able to add this as a PR to create a file in |
Sure, I'll make a PR later when I get my hands on the board to test it again. By the way, the SBC I tried this on was Orange Pi Zero |
Hi. I'm sorry I haven't responded about this issue for a long time. I've thought about making the example + PR and I thought it would be good to make the example in [package]
name = "gpiotest"
version = "0.1.0"
authors = ["vmasdani <[email protected]>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
linux-embedded-hal = { version = "0.3", features = ["gpio_cdev"] } And I got this error when building with
Same goes when I change the feature to
When I them separately though, it's running fine and I'm able to blink an LED using [dependencies]
linux-embedded-hal = "0.3"
gpio-cdev = "0.2.0" It works fine, but I ended up not being able to use |
Greetings.
I was kind of having a hard time getting the grasp of trying to use the digital GPIO pin. I worked it out in the end anyway, but I think it would be cool to add basic examples as simple as LED blinking, LED breathing, etc. like this:
The text was updated successfully, but these errors were encountered: