First you need a Go distribution. Then on the build host, targeting a Raspberry Pi 3
make buildarm7
Install by simply copy the binary under /usr/local/bin
and setup the service for the service manager used by the distribution
- For systemd: radiogagad.service
- For OpenRC: radiogagad.service
Configuration is loaded from /etc/radiogagad.yml
if file exists. See radiogagad.yml.template for configuration variables names and their default values.
- BOOT OK pin must be set to high to stop power button flashes
- Soft Shutdown pin must be set to low
- Wait for rising edge on Shutdown pin
- When button fired, set Soft Shutdown pin to high for 1 second then low to trigger the power off
Examples: