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 dbc4b06abe Add a few things
- Update README.md to point at the right place.
- Add github actions.
- Add codecov.yml because the codecov.io defaults are not great.
5 years ago
.github/workflows Add a few things 5 years ago
ads1x15 Update import path to what devices will be 5 years ago
apa102 Update import path to what devices will be 5 years ago
as7262 Update import path to what devices will be 5 years ago
bh1750 Update import path to what devices will be 5 years ago
bitbang Update import path to what devices will be 5 years ago
bmxx80 Update import path to what devices will be 5 years ago
cap1xxx Update import path to what devices will be 5 years ago
ccs811 Update import path to what devices will be 5 years ago
ds18b20 Update import path to what devices will be 5 years ago
ds248x Update import path to what devices will be 5 years ago
epd Update import path to what devices will be 5 years ago
hd44780 Update import path to what devices will be 5 years ago
ht16k33 Update import path to what devices will be 5 years ago
hx711 Update import path to what devices will be 5 years ago
ina219 Update import path to what devices will be 5 years ago
inky Update import path to what devices will be 5 years ago
lepton Update import path to what devices will be 5 years ago
lirc Update import path to what devices will be 5 years ago
mcp23xxx Update import path to what devices will be 5 years ago
mcp9808 Update import path to what devices will be 5 years ago
mfrc522 Update import path to what devices will be 5 years ago
mpu9250 Update import path to what devices will be 5 years ago
nrzled Update import path to what devices will be 5 years ago
pca9548 Update import path to what devices will be 5 years ago
pca9685 Update import path to what devices will be 5 years ago
piblaster Update import path to what devices will be 5 years ago
rainbowhat Update import path to what devices will be 5 years ago
sn3218 Update import path to what devices will be 5 years ago
ssd1306 Update import path to what devices will be 5 years ago
st7567 Update import path to what devices will be 5 years ago
tlv493d Update import path to what devices will be 5 years ago
tm1637 Update import path to what devices will be 5 years ago
unicornhd Update import path to what devices will be 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 Add a few things 5 years ago
codecov.yml Add a few things 5 years ago
doc.go Migrate layout to the destination layout 5 years ago
go.mod Update import path to what devices will be 5 years ago
go.sum Update import path to what devices will be 5 years ago

README.md

periph - Peripherals I/O in Go

mascot

Documentation is at https://periph.io

PkgGoDev CoverageStatus

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/conn/gpio"
    "periph.io/x/host"
    "periph.io/x/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.