Skip to content

mame82/periph

This branch is 1 commit ahead of, 164 commits behind google/periph:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 12, 2018
1b7b63e · Nov 12, 2018
Sep 3, 2018
Nov 8, 2018
Oct 30, 2018
Nov 9, 2018
Nov 12, 2018
Oct 19, 2016
Aug 12, 2018
Oct 30, 2018
Oct 31, 2018
Mar 27, 2017
Oct 31, 2018
Oct 13, 2016
Jun 26, 2018
Jun 30, 2018
Apr 17, 2018
Oct 28, 2018
Oct 28, 2018
Oct 28, 2018
Apr 16, 2018

Repository files navigation

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.

About

Go·Hardware·Lean

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.5%
  • HTML 1.4%
  • Makefile 0.1%