mirror of https://github.com/periph/devices
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.
- Removed useless ReadRaw - Changed the scope of ReadAndCombine to private readAndCombine - Renamed ExampleNewI2C & ExampleNewSpi to follow the recommandations. Exposed an I2CAddr for those who may need it. |
2 years ago | |
|---|---|---|
| .github | 3 years ago | |
| ads1x15 | 4 years ago | |
| adxl345 | 2 years ago | |
| apa102 | 4 years ago | |
| as7262 | 4 years ago | |
| bh1750 | 4 years ago | |
| bitbang | 4 years ago | |
| bmxx80 | 4 years ago | |
| cap1xxx | 4 years ago | |
| ccs811 | 4 years ago | |
| ds18b20 | 4 years ago | |
| ds248x | 4 years ago | |
| ep0099 | 5 years ago | |
| epd | 4 years ago | |
| hd44780 | 4 years ago | |
| ht16k33 | 4 years ago | |
| hx711 | 4 years ago | |
| ina219 | 4 years ago | |
| inky | 3 years ago | |
| lepton | 4 years ago | |
| lirc | 3 years ago | |
| mcp23xxx | 4 years ago | |
| mcp9808 | 4 years ago | |
| mfrc522 | 4 years ago | |
| mpu9250 | 4 years ago | |
| nrzled | 4 years ago | |
| pca9548 | 4 years ago | |
| pca9685 | 4 years ago | |
| piblaster | 4 years ago | |
| rainbowhat | 4 years ago | |
| screen1d | 5 years ago | |
| sgp30 | 4 years ago | |
| sn3218 | 4 years ago | |
| ssd1306 | 4 years ago | |
| st7567 | 4 years ago | |
| tca95xx | 4 years ago | |
| tlv493d | 4 years ago | |
| tm1637 | 4 years ago | |
| unicornhd | 5 years ago | |
| videosink | 4 years ago | |
| waveshare2in13v2 | 4 years ago | |
| .gohci.yml | 5 years ago | |
| AUTHORS | 8 years ago | |
| CONTRIBUTING.md | 9 years ago | |
| CONTRIBUTORS | 2 years ago | |
| LICENSE | 10 years ago | |
| README.md | 5 years ago | |
| codecov.yml | 5 years ago | |
| doc.go | 5 years ago | |
| go.mod | 3 years ago | |
| go.sum | 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.
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.
