GPIO controller via HTTP with golang and periph.io
go get
go run .
# go run . -a "192.168.1.1:8080" 17=1 27=low # Start HTTP server at 192.168.1.1:8080; And set GPIO17 set high, set GPIO27 to low# https://www.raspberrypi.com/documentation/computers/os.html#gpio-and-the-40-pin-header
curl -X PUT "http://127.0.0.1:8080/pin/17/1"
curl -X PUT "http://127.0.0.1:8080/pin/27/0"
# https://github.com/bigtreetech/CB1#40-pin-gpio
curl -X PUT "http://127.0.0.1:8080/pin/78/1"
curl -X PUT "http://127.0.0.1:8080/pin/78/0"