mirror of
https://github.com/periph/conn.git
synced 2026-11-19 18:46:16 +03:00
main
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 MiB
0 Stars
1 Watchers
0 Forks
Languages
Go
95.2%
Python
3.4%
Shell
1.1%
Makefile
0.3%
