/f16_hid

Human interface device interfaces for the Framework 16 laptop

Primary LanguageRustMIT LicenseMIT

Framework16 Library

As a fun project, I've decided to implement a library for the various input devices found on the Framework16. I'm sure others exist, I decided to play on my own. Feel free to submit pull requests!

Examples:

Computer Stats

This is a fun blinkenlights example that replicates something like the displays on the BeBox. The lower halves of the LED Matricies display 8 hyperthreaded cores each.

It shows how to open the displays, and recover from write errors on the devices.

It also comes with a nice little systemd script so you can install it as a service under Linux. It requires the following commands to install:

cargo build --release --example computer_stats
sudo cp target/release/computer_stats /usr/local/bin/
sudp cp examples/computer_stats.service /etc/systemd/system/
sudo systemctl enable computer_stats
sudo systemctl start computer_stats

Uninstall like so:

sudo systemctl stop computer_stats
sudo systemctl disable computer_stats
sudo rm /etc/systemd/system/computer_stats.service
sudo rm /usr/local/bin/computer_stats