Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoRelay

GPIO controller via HTTP with golang and periph.io

Usage

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"

About

GPIO controller via HTTP with golang and periph.io

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages