- Install the cross-compiler:
apt install gcc-arm-linux-gnueabihf
- Install the target:
rustup target add armv7-unknown-linux-gnueabihf
- Add a
./cargo/config
file with the following contents:
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
- Build for rpi:
cargo build --target armv7-unknown-linux-gnueabihf
- The binary can be found at
target/armv7-unknown-linux-gnueabihf/debug/marquee
sudo ./demo -t 10 -D 1 runtext16.ppm --led-no-hardware-pulse --led-gpio-mapping=adafruit-hat --led-rows=16 --led-cols=32 --led-chain=2 --led-multiplexing=3 --led-row-addr-type=2 --led-brightness=50