= aw-lights
== Setup
[source,bash]
----
xbps-install fake-hwclock
ln -s /etc/sv/fake-hwclock/ /var/service/
# Enable SPI
echo 'dtparam=spi=on' >>/boot/config.txt
# Allow big buf for SPI
echo 'options spidev bufsiz=65536' > /etc/modprobe.d/spidev.conf
----
Set CPU clock
* RPI3
+
[title='/boot/config.txt']
----
core_freq=250
----
* RPI4
+
[title='/boot/config.txt']
----
core_freq=500
core_freq_min=500
----
== Cross Compiling
----
xbps-install -y cross-armv7l-linux-gnueabihf
rustup target add armv7-unknown-linux-gnueabihf
make deploy
----