2 releases
0.1.1 | Nov 22, 2024 |
---|---|
0.1.0 | Nov 8, 2024 |
#2064 in Hardware support
164 downloads per month
11KB
158 lines
JetGpio
This crate provides a peripheral abstraction layer over the jetgpio-sys crate to provide memory-mapped access to NvidiaⓇ Jetson Nano™ or Jetson Orin Nano™ GPIO interfaces.
This library is built on top of jetgpio-sys, which iteslf is built on top of the JETGPIO package.
By default this crate assumes Jetson Nano usage. For interfacing with a Jetson Orin Nano, enable the orin
feature flag.
Requirements
- Clang
- Can be installed with
sudo apt-get install clang
- Can be installed with
- sudo
- In order for the crate to work properly, you must run the code with sudo level permissions. The workflow I have personally been using so far is as follows:
cargo build sudo ./target/debug/{MY_CRATE_HERE}
- The examples can be built and run in a very similar way.
- PWM
- For PWM to work currently, the
pwm.sh
shell script must be run
- For PWM to work currently, the
Currently Supported Interfaces (and those in progress)
- GPIO Input and Output Pins
- PWM
Licence
This crate is published under the UNLICENSE, just as both of the underlying libraries.
Dependencies
~0.5–3MB
~66K SLoC