2022-10-27 11:39:59 -04:00
2026-11-08 17:34:29 -05:00
2024-08-09 13:54:50 -04:00
2024-10-30 19:20:15 -04:00
2017-03-27 10:02:48 -04:00
2025-12-18 11:05:24 -05:00
2016-10-13 13:26:58 -04:00
2024-08-09 13:32:39 -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.9 MiB
0 Stars 1 Watchers 0 Forks
Languages
Go 98.6%
Python 1%
Shell 0.3%