feat: Create GPIO monitor and basic callback functionality to print
This commit is contained in:
parent
9b74fb2b8c
commit
18aa3dfaa8
7 changed files with 616 additions and 0 deletions
15
deploy.sh
Executable file
15
deploy.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Exit on error
|
||||
set -e
|
||||
|
||||
echo "Building for Raspberry Pi..."
|
||||
cargo zigbuild --release --target aarch64-unknown-linux-gnu
|
||||
|
||||
echo "Copying to Raspberry Pi..."
|
||||
scp target/aarch64-unknown-linux-gnu/release/noisebell noisebridge@noisebell.local:~/
|
||||
|
||||
echo "Setting permissions and restarting service..."
|
||||
ssh noisebridge@noisebell.local "chmod +x ~/noisebell "
|
||||
|
||||
echo "Deployment complete!"
|
||||
Loading…
Add table
Add a link
Reference in a new issue