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
Chris Pahl 422dd59a65 chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
.github Fix ineffassign check 5 years ago
ads1x15 chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
apa102 chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
as7262 chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
bh1750 chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
bitbang Migrate to devices/v3 5 years ago
bmxx80 chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
cap1xxx chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
ccs811 Migrate to devices/v3 5 years ago
ds18b20 ds248x: add support for DS2482-800 in addition to DS2482-100 (#13) 5 years ago
ds248x chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
ep0099 chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
epd chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
hd44780 Migrate to devices/v3 5 years ago
ht16k33 chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
hx711 Migrate to devices/v3 5 years ago
ina219 chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
inky chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
lepton chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
lirc staticcheck: enforce 5 years ago
mcp23xxx chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
mcp9808 chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
mfrc522 chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
mpu9250 chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
nrzled staticcheck: enforce 5 years ago
pca9548 Migrate to devices/v3 5 years ago
pca9685 chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
piblaster staticcheck: enforce 5 years ago
rainbowhat chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
screen1d Add unnamed private struct 5 years ago
sn3218 chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
ssd1306 chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
st7567 chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
tlv493d chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
tm1637 chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
unicornhd Migrate to devices/v3 5 years ago
waveshare2in13v2 chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
.gohci.yml Add gohci forward tests 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 chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
codecov.yml Add a few things 5 years ago
doc.go Migrate layout to the destination layout 5 years ago
go.mod chores: rename to github.com/GermanBionicSystems/devices/v3 to fix go mod issues 11 months ago
go.sum Roll dependencies 5 years ago

README.md

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 CoverageStatus

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.