periph

Go·Hardware·Lean

Github星跟踪图

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.

主要指标

概览
名称与所有者google/periph
主编程语言Go
编程语言Go (语言数: 1)
平台
许可证Apache License 2.0
所有者活动
创建于2016-10-13 16:53:51
推送于2022-05-29 14:36:30
最后一次提交
发布数21
最新版本名称v3.7.0 (发布于 )
第一版名称v1.0.0 (发布于 )
用户参与
星数1.7k
关注者数57
派生数165
提交数732
已启用问题?
问题数148
打开的问题数0
拉请求数284
打开的拉请求数0
关闭的拉请求数28
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?