Go·Hardware·Lean - Device drivers
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Marc-Antoine Ruel 1de83694a1 Migrate layout to the destination layout
First I imported the commits from v3.6.6 with:

  PKG=devices
  git init $PKG
  cd $PKG
  git remote add origin https://github.com/google/periph
  git fetch origin
  git filter-repo \
    --path AUTHORS \
    --path CONTRIBUTING.md \
    --path CONTRIBUTORS \
    --path LICENSE \
    --path README.md \
    --path $PKG --path experimental/$PKG $@
  git remote add origin git@github.com:periph/$PKG
  git fetch origin
  # Use the occasion to rename from master to main since we are starting from
  # scratch.
  git branch -m main
  git push origin main

Then I fixed the layout to get rid of experimental with:

  git rm experimental/devices/README.md
  git mv experimental/devices/* .
  git mv devices/* .

The import paths will be fixed in a follow up.
5 years ago
ads1x15 Migrate layout to the destination layout 5 years ago
apa102 Migrate layout to the destination layout 5 years ago
as7262 Migrate layout to the destination layout 5 years ago
bh1750 Migrate layout to the destination layout 5 years ago
bitbang Migrate layout to the destination layout 5 years ago
bmxx80 Migrate layout to the destination layout 5 years ago
cap1xxx Migrate layout to the destination layout 5 years ago
ccs811 Migrate layout to the destination layout 5 years ago
ds18b20 Migrate layout to the destination layout 5 years ago
ds248x Migrate layout to the destination layout 5 years ago
epd Migrate layout to the destination layout 5 years ago
hd44780 Migrate layout to the destination layout 5 years ago
ht16k33 Migrate layout to the destination layout 5 years ago
hx711 Migrate layout to the destination layout 5 years ago
ina219 Migrate layout to the destination layout 5 years ago
inky Migrate layout to the destination layout 5 years ago
lepton Migrate layout to the destination layout 5 years ago
lirc Migrate layout to the destination layout 5 years ago
mcp23xxx Migrate layout to the destination layout 5 years ago
mcp9808 Migrate layout to the destination layout 5 years ago
mfrc522 Migrate layout to the destination layout 5 years ago
mpu9250 Migrate layout to the destination layout 5 years ago
nrzled Migrate layout to the destination layout 5 years ago
pca9548 Migrate layout to the destination layout 5 years ago
pca9685 Migrate layout to the destination layout 5 years ago
piblaster Migrate layout to the destination layout 5 years ago
rainbowhat Migrate layout to the destination layout 5 years ago
sn3218 Migrate layout to the destination layout 5 years ago
ssd1306 Migrate layout to the destination layout 5 years ago
st7567 Migrate layout to the destination layout 5 years ago
tlv493d Migrate layout to the destination layout 5 years ago
tm1637 Migrate layout to the destination layout 5 years ago
unicornhd Migrate layout to the destination layout 5 years ago
AUTHORS as7262: initial experimental support for AMS AS7262 Spectral ID i2c sensor (#300) 8 years ago
CONTRIBUTING.md conntest: Add 100% coverage 9 years ago
CONTRIBUTORS inky: Adds device driver for Inky pHAT e-ink screens (#390) 7 years ago
LICENSE Initial commit of pio. 10 years ago
README.md Use timeTicker instead of Sleep 8 years ago
doc.go Migrate layout to the destination layout 5 years ago

README.md

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.