2026-11-08 17:34:29 -05:00
2024-08-09 12:57:55 -04:00
2020-12-24 19:43:25 -05:00
2017-03-27 10:02:48 -04:00
2022-10-27 08:48:38 -04:00
2016-10-13 13:26:58 -04:00
2024-08-09 12:23:05 -04:00

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.

mascot

PkgGoDev codecov

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.

S
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%