periph

Go·Hardware·Lean

Github stars Tracking Chart

periph - Peripherals I/O in Go

mascot

Documentation is at https://periph.io

GoDoc
Go Report Card
Coverage Status
Build Status

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/periph/conn/gpio"
    "periph.io/x/periph/host"
    "periph.io/x/periph/host/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.

Disclaimer

This is not an official Google product (experimental or otherwise), it
is just code that happens to be owned by Google.

This project is not affiliated with the Go project.

Main metrics

Overview
Name With Ownergoogle/periph
Primary LanguageGo
Program languageGo (Language Count: 1)
Platform
License:Apache License 2.0
所有者活动
Created At2016-10-13 16:53:51
Pushed At2022-05-29 14:36:30
Last Commit At
Release Count21
Last Release Namev3.7.0 (Posted on )
First Release Namev1.0.0 (Posted on )
用户参与
Stargazers Count1.7k
Watchers Count57
Fork Count165
Commits Count732
Has Issues Enabled
Issues Count148
Issue Open Count0
Pull Requests Count284
Pull Requests Open Count0
Pull Requests Close Count28
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private