Marc-Antoine Ruel 311a6a6b30 Fix platform-specific static checks in CI
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.
2026-11-09 12:28:05 -05:00
2026-11-08 17:34:36 -05:00
2024-08-09 13:05:53 -04:00
2017-03-27 10:02:48 -04:00
2016-10-13 13:26:58 -04:00
2024-08-09 13:05:53 -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.7 MiB
0 Stars 1 Watchers 0 Forks
Languages
Go 96.9%
Python 2.2%
Shell 0.7%
Makefile 0.2%