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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?