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
Victor Chen 19195d7f7a lirc requries linebreak \n for SEND_ONCE 3 years ago
.github [inky] Add Inky Impression 5.7" and 4" support (#55) 3 years ago
ads1x15 Update to go1.17 4 years ago
apa102 Update to go1.17 4 years ago
as7262 Update to go1.17 4 years ago
bh1750 Update to go1.17 4 years ago
bitbang Update to go1.17 4 years ago
bmxx80 Update to go1.17 4 years ago
cap1xxx Update to go1.17 4 years ago
ccs811 Update to go1.17 4 years ago
ds18b20 Update to go1.17 4 years ago
ds248x Update to go1.17 4 years ago
ep0099 staticcheck: enforce 5 years ago
epd Update to go1.17 4 years ago
hd44780 Update to go1.17 4 years ago
ht16k33 Update to go1.17 4 years ago
hx711 Update to go1.17 4 years ago
ina219 ina219: Interpret signed output register values (#54) 4 years ago
inky [inky] Add Inky Impression 5.7" and 4" support (#55) 3 years ago
lepton Update to go1.17 4 years ago
lirc lirc requries linebreak \n for SEND_ONCE 3 years ago
mcp23xxx Update to go1.17 4 years ago
mcp9808 Update to go1.17 4 years ago
mfrc522 Update to go1.17 4 years ago
mpu9250 Update to go1.17 4 years ago
nrzled Update to go1.17 4 years ago
pca9548 Update to go1.17 4 years ago
pca9685 Update to go1.17 4 years ago
piblaster Update to go1.17 4 years ago
rainbowhat Update to go1.17 4 years ago
screen1d Add unnamed private struct 5 years ago
sgp30 add sgp30 air quality sensor 4 years ago
sn3218 Update to go1.17 4 years ago
ssd1306 Update to go1.17 4 years ago
st7567 Update to go1.17 4 years ago
tca95xx tca95xx: Add support for i/o extenders. (#51) 4 years ago
tlv493d Update to go1.17 4 years ago
tm1637 Update to go1.17 4 years ago
unicornhd Migrate to devices/v3 5 years ago
videosink videosink: Implement rate-limiting, keep-alive 4 years ago
waveshare2in13v2 waveshare2in13v2: Support rotation of image (#46) 4 years ago
.gohci.yml gohci and github actions: improve testing 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 tca95xx: Add support for i/o extenders. (#51) 4 years ago
LICENSE Initial commit of pio. 10 years ago
README.md README: update badge 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 to go1.17 4 years ago
go.sum Remove compatibility with before 1.17 4 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 codecov

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.