Skip to content

michalq/periph

 
 

Repository files navigation

Fork notice

This is for from google/periph it adds checking for allwiner/a64 processor on nanopi a64 for string sun50i-a64.

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"
    "github.com/michalq/periph/conn/gpio"
    "github.com/michalq/periph/host"
    "github.com/michalq/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.

Packages

No packages published

Languages

  • Go 98.7%
  • HTML 1.2%
  • Makefile 0.1%