an adafruit 7-segment hooked over i2c to an old raspberry pi 1
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
Cargo.lock
Cargo.toml
Makefile
README.md
cycle.apng
klockan.service
wiring.jpg

README.md

My rpi1 is running Arch Linux ARM. First get some tools, then enable i2c and load up modules.

pacman -S i2c-tools lm_sensors
printf "dtparam=i2c_arm=on\n" >>/boot/config.txt
printf "i2c-dev\ni2c-bcm2708\n" >/etc/modules-load.d/my-i2c.conf

Let group users r/w the i2c-device!

printf 'SUBSYSTEM=="i2c-dev", GROUP="users", MODE="0660"\n' >/etc/udev/rules.d/my-i2c.rules

Cross-compiling is currently done in Docker, see the old-fashioned Makefile.