MATRIX Rust Hardware Abstraction Layer
MATRIX RHAL is the Rust implementation of MATRIX HAL. The goal is to center around calling the MATRIX Kernel Modules and have most/all of HAL's features in this layer.
Usage
Add this to your Cargo.toml
:
[]
= "0.0.3"
Roadmap
Below are the current/planned features in RHAL.
- Device information
- Sensor Reading
- UV
- Pressure
- Humidity
- IMU
- Everloop
- GPIO
- Digital Read/Write
- PWM Write
- Microphone
- Documentation
Dependencies
Run the following commands individually on your Raspberry Pi.
# Add matrix repository & key
|
|
# Update packages
# Install MATRIX Init Package
# Restart system
# Install MATRIX kernel Modules
# Restart a second time
Building From Source (Raspberry Pi)
Building directly on your Raspberry Pi will lead to slower compilation times, due to the lack processing power.
Install git.
Clone the repository.
Install Rust on the pi.
|
Add MATRIX RHAL as a dependency to your Rust project.
Building From Source (Cross Compile)
To reduce compilation times, it's recommended to build RHAL on your computer and deploy it to the Pi. This ends up saving time and sanity during development. Below are some guides to help set up this workflow: