Skip to content

periph/devices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0b81efc · May 29, 2021
May 25, 2021
May 25, 2021
Dec 30, 2020
May 25, 2021
Dec 30, 2020
Dec 30, 2020
May 25, 2021
May 25, 2021
Dec 30, 2020
May 12, 2021
May 12, 2021
May 25, 2021
Jan 13, 2021
Dec 30, 2020
Dec 30, 2020
Dec 30, 2020
May 25, 2021
May 25, 2021
May 25, 2021
May 25, 2021
May 25, 2021
May 25, 2021
Mar 8, 2021
May 25, 2021
May 25, 2021
Dec 30, 2020
Dec 30, 2020
May 25, 2021
Dec 30, 2020
Mar 28, 2021
Dec 30, 2020
May 25, 2021
Dec 30, 2020
Mar 21, 2021
Dec 30, 2020
Dec 30, 2020
Mar 21, 2021
May 28, 2021
Oct 31, 2018
Mar 27, 2017
Jan 29, 2019
Oct 13, 2016
Feb 9, 2021
Dec 25, 2020
Dec 25, 2020
May 29, 2021
May 29, 2021

Repository files navigation

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 Coverage Status

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.

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.