📦 Linux epaper display driver writed 🦀 Rust ** Hardware 💵 inky-phat **
🚧 Work In Progress 🚧
epd24rbw
is a CLI tool designed for setup and read ndir sensors data.
-
address
: defaults namesystem
. For remote acces use adress like thishost=0.0.0.0,port=6666
-
run driver and bind directory to wath data. All of the arguments and flags to this command are optional: -
path
: working directory default to/var/run/greenhouse/dashboard/epd24rwb
-
- `bautrate`: default `57600` - `uart`: defaults to `1` and iterate in `1..4`
Configure display for user.
epd24rwb config --uart=2 --path=`test1`
init
initialize directory.
To cross-compile for the Raspberry Pi you will need an
arm-unknown-linux-gnueabihf
GCC toolchain and Rust component installed. On
Arch Linux I built [arm-linux-gnueabihf-gcc] from the AUR. Add the Rust target
with rustup target add arm-unknown-linux-gnueabihf
. Then you can
cross-compile with cargo
:
cargo build --release --target arm-unknown-linux-gnueabihf
After it is built copy target/arm-unknown-linux-gnueabihf/release/lca2019
to
the Raspberry Pi.
-
Install
cargo
:Edinburgh is installed through Cargo, a Rust package manager. Rustup, a tool for installing Rust, will also install Cargo. On Linux and macOS systems,
rustup
can be installed as follows:curl https://sh.rustup.rs -sSf | sh
Additional installation methods are available here.
-
Install
automata
:cargo install automata
-
Troubleshooting
libdbus-sys
errorsOn Ubuntu OS install
$ sudo apt install libdbus-1-dev
Copy epd24rwb.service
to /etc/systemd/system/
.
sudo systemctl daemon-reload
sudo setcap cap_net_bind_service=epd24rwb
sudo systemctl enable --now epd24rwb