Go to file
2022-07-25 22:30:09 -04:00
.cargo Update .cargo/conf 2022-07-25 22:29:24 -04:00
common Rename errors to error 2021-10-12 17:14:44 -04:00
lib-ws2818-rgb-led-spi-driver Fix clippy warnings 2021-10-12 17:15:24 -04:00
src Run rustfmt with new formatter 2021-10-12 17:15:34 -04:00
webui Update package.json 2022-07-25 22:30:09 -04:00
.gitignore Add liveview-rust 2021-08-18 10:02:40 -04:00
Cargo.toml Update makefile 2021-10-16 07:36:15 -04:00
copy-code.sh Add copy-code.sh 2021-10-16 07:36:02 -04:00
entr.sh Update entr.sh 2021-10-12 17:15:14 -04:00
Makefile Update Makefile 2022-07-25 22:29:32 -04:00
README.adoc Update makefile 2021-10-16 07:36:15 -04:00
rustfmt.toml Use unstable Crate rustfmt option 2021-10-10 16:43:30 +01:00

= 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
----