This application provides simple statistics for ODROID-HC4 with OLED device.
Currently there are no options and the device used (/dev/i2c-0
) and
rotation (180 degrees) is hardcoded to match HC4 OLED's display. The
display is refreshed every 2 seconds.
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUSTFLAGS="-Clink-self-contained=yes -Clinker=rust-lld"
export AR_aarch64_unknown_linux_musl=llvm-ar
export CC_aarch64_unknown_linux_musl=clang
cargo build --bin main --release --target aarch64-unknown-linux-musl
If there are no /dev/i2c-0
device use the kernel module: modprobe i2c-dev
.
Currently the notifier is available on Arch AUR: https://aur.archlinux.org/packages/oled-notifier-git
Note that the package can be built on amd64 systems but must be run on AArch64 system.
The end-to-end tests render a frame using fake system statistics and check if the image is consistent with the known-good output:
To regenerate end-to-end screenshots run the following command:
EG_SIMULATOR_DUMP=docs/screenshot.png cargo run --features simulator --bin simulate
- sys-oled-hc4 for more features (Python).