mirror of
https://github.com/periph/host.git
synced 2026-11-19 18:26:18 +03:00
main
The upgraded linters exposed failures in macOS and Windows build paths. Remove obsolete +build directives, mark unused stub arguments explicitly, and delete unused non-Linux event state. Normalize private syscall wrapper names across platforms and repair the Windows package documentation while preserving the exported Errno type. Validated make fix, make verify, make test, and make test-race on Linux, plus cross-platform linting for Windows amd64 and macOS arm64.
periph - Peripherals I/O in Go
Documentation is at https://periph.io
Join us for a chat on gophers.slack.com/messages/periph, get an invite here.
Example
Blink a LED:
package main
import (
"time"
"periph.io/x/conn/v3/gpio"
"periph.io/x/host/v3"
"periph.io/x/host/v3/rpi"
)
func main() {
host.Init()
t := time.NewTicker(500 * time.Millisecond)
for l := gpio.Low; ; l = !l {
rpi.P1_33.Out(l)
<-t.C
}
}
Curious? Look at supported devices for more examples!
Authors
periph was initiated with ❤️️ and passion by Marc-Antoine
Ruel. The full list of contributors is in
AUTHORS and
CONTRIBUTORS.
Description
Ввод-вывод периферийных устройств в Go
https://periph.io/
Readme
Apache-2.0
1.7 MiB
0 Stars
1 Watchers
0 Forks
Languages
Go
96.9%
Python
2.2%
Shell
0.7%
Makefile
0.2%
