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
George Sexton b07b8920f0 Fix TestSenseContinuous to be more robust 4 months ago
.github Silence linting 2 years ago
ads1x15 Update to go1.17 4 years ago
adxl345 adxl345: I²C support (#67) 2 years ago
aht20 Add doc file for AHT20 (#72) 2 years ago
aip31068 Devices: Initial Add of Waveshare 1602 Support (#100) 1 year ago
am2320 devices: Add support for AM2320 Temperature/Humidity Sensor (#82) 1 year 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 bmxx80: add support for filters without using SenseContinuous (#74) 2 years ago
cap1xxx Update to go1.17 4 years ago
ccs811 Update to go1.17 4 years ago
common Introduces driver for Sensirion SHT-4X Temperature/Humidity Sensors. (#109) 12 months ago
dht22 add dht22 support (#111) 5 months ago
ds18b20 Update to go1.17 4 years ago
ds248x Update to go1.17 4 years ago
ep0099 ep0099: optionally read device state on init (#86) 1 year ago
epd Update to go1.17 4 years ago
hd44780 hd44780: Restructure to implement conn/display/TextDisplay. Refine to use GPIO.Group (#91) 1 year ago
hdc302x Introduces driver for Sensirion SHT-4X Temperature/Humidity Sensors. (#109) 12 months ago
ht16k33 Update to go1.17 4 years ago
hx711 Update to go1.17 4 years ago
ina219 Issue #73 - restructure so voltage can be returned even if power/current is meaningless. (#87) 1 year ago
inky inky: Add Impression 7.3 Spectra6 support (#110) 11 months ago
lepton lepton/cci: run stringer with "go run" (#96) 1 year ago
lirc lirc requries linebreak \n for SEND_ONCE (#57) 3 years ago
lps2x Fix TestSenseContinuous to be more robust 4 months ago
matrixorbital Add Support for MatrixOrbital LK204-7T LCD Display (#93) 1 year ago
max7219 Max7219 LED Driver (#79) 2 years ago
mcp23xxx mcp23xxx: Add GPIO Group support (#92) 1 year ago
mcp472x mcp472x: Initial Add (#108) 12 months ago
mcp9808 Update to go1.17 4 years ago
mfrc522 Update to go1.17 4 years ago
mpu9250 mpu9250: Add i2c interface support (#101) 1 year ago
nrzled Update to go1.17 4 years ago
nxp74hc595 Add Support for 74HC595 Serial -> Parallel Shift Register (#99) 1 year ago
pca9548 Update to go1.17 4 years ago
pca9633 Devices: Initial Add of Waveshare 1602 Support (#100) 1 year ago
pca9685 Update to go1.17 4 years ago
pcf857x devices: Add support for PCF857X GPIO Extenders (#98) 1 year ago
piblaster Update to go1.17 4 years ago
rainbowhat Update to go1.17 4 years ago
scd4x Introduces driver for Sensirion SHT-4X Temperature/Humidity Sensors. (#109) 12 months ago
screen1d Add unnamed private struct 5 years ago
serlcd Add Support for SparkFun SerLCD Display (#88) 1 year ago
sgp30 add sgp30 air quality sensor 4 years ago
sht4x Introduces driver for Sensirion SHT-4X Temperature/Humidity Sensors. (#109) 12 months ago
sn3218 Update to go1.17 4 years ago
ssd1306 ssd1306: Add support for SH1106 and SH1107 (#104) 1 year ago
st7567 Update to go1.17 4 years ago
tca95xx tca95xx: Add support for i/o extenders. (#51) 4 years ago
tic tic: Add I²C support for Tic Stepper Motor Controllers (#78) 2 years ago
tlv493d Update to go1.17 4 years ago
tm1637 Update to go1.17 4 years ago
tmp102 tmp102: Initial add of tmp102 driver. (#76) 2 years ago
unicornhd Silence linting 2 years ago
videosink videosink: Implement rate-limiting, keep-alive 4 years ago
waveshare2in13v2 waveshare2in13v2: Support rotation of image (#46) 4 years ago
waveshare2in13v3 waveshare2in13v3/waveshare2in13v4: adding v3 and v4 waveshare 2.13" ePaper displays (#65) 1 year ago
waveshare2in13v4 waveshare2in13v3/waveshare2in13v4: adding v3 and v4 waveshare 2.13" ePaper displays (#65) 1 year ago
waveshare1602 Devices: Initial Add of Waveshare 1602 Support (#100) 1 year ago
.gohci.yml gohci and github actions: improve testing 5 years ago
AUTHORS Add myself to AUTHORS 2 years ago
CONTRIBUTING.md conntest: Add 100% coverage 9 years ago
CONTRIBUTORS add dht22 support (#111) 5 months ago
LICENSE Initial commit of pio. 10 years ago
README.md Remove disclaimers 2 years ago
codecov.yml Reduce PR target coverage to 40% 2 years ago
doc.go Migrate layout to the destination layout 5 years ago
go.mod inky: Fix Impression Driver (#106) 1 year ago
go.sum inky: Fix Impression Driver (#106) 1 year 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.