mirror of
https://github.com/FliegendeWurst/raspi-oled.git
synced 2024-11-28 13:05:53 +00:00
docs: build using Nix
This commit is contained in:
parent
3d7ef81ab1
commit
c57b8c83e2
10
README.md
10
README.md
@ -1,12 +1,12 @@
|
||||
# raspi demo for oled(ssd1306)
|
||||
|
||||
in rust
|
||||
# raspi demo for oled ssd1306 display
|
||||
|
||||
## Quick start
|
||||
|
||||
> docker pull ragnaroek/rust-raspberry:1.39.0
|
||||
> nix-shell
|
||||
>
|
||||
> ./build.sh
|
||||
> rustup target add arm-unknown-linux-musleabihf
|
||||
>
|
||||
> cargo build --release --target arm-unknown-linux-musleabihf
|
||||
|
||||
Then scp the release file to your raspi.
|
||||
|
||||
|
6
build.sh
6
build.sh
@ -1,6 +0,0 @@
|
||||
#! /bin/sh
|
||||
docker run \
|
||||
--volume $PWD:/home/cross/project \
|
||||
--volume $HOME/.cargo/registry:/home/cross/.cargo/registry \
|
||||
ragnaroek/rust-raspberry:1.39.0 \
|
||||
build --release
|
Loading…
Reference in New Issue
Block a user