https://github.com/goto-eof/rpizero_rdc_rust
Server application for Raspberry Pi Zero W which allows to control remotely a led.
https://github.com/goto-eof/rpizero_rdc_rust
Last synced: 3 months ago
JSON representation
Server application for Raspberry Pi Zero W which allows to control remotely a led.
- Host: GitHub
- URL: https://github.com/goto-eof/rpizero_rdc_rust
- Owner: goto-eof
- Created: 2023-11-20T20:20:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-20T21:37:14.000Z (over 1 year ago)
- Last Synced: 2024-12-30T03:43:51.628Z (5 months ago)
- Language: Rust
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Raspberry Pi Zero W | Remote Device Control Server (Rust)
Server application for Raspberry Pi Zero W which allows to control remotely a led. The client side can be found at this [link](https://github.com/goto-eof/rpizero_rdc_ts).
Technologies/Tools: Rust, tide web server, rust_gpiozero.
### Build on MacOS, run on Raspberry Pi Zero W
Here are the instructions to build on MacOS in order to run then the executable on Raspberry Pi Zero W. The compiled file is under `target/arm-unknown-linux-musleabi/release`.
```
rustup target list | grep "armv-"brew install arm-linux-gnueabihf-binutils
rustup target add arm-unknown-linux-musleabi
cargo build --target=arm-unknown-linux-musleabi --release
```For [more configuration info click here](https://amritrathie.vercel.app/posts/2020/03/06/cross-compiling-rust-from-macos-to-raspberry-pi/).
Go to `target/arm-unknown-linux-musleabi/release` and copy `rpizero_rdc_rust`. Transfer it via FTP to your Raspberry Pi Zero W.
Change file permissions on your Raspberry Pi
```
chmod +x rpizero_rdc_rust
```run the executable
```
./rpizero_rdc_rust
```