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.
- 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
- GPIO Input and Output Pins
- PWM
This crate is published under the UNLICENSE, just as both of the underlying libraries.