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.
Avoid using strconv.Itoa fmt.Sprintf() can format numbers directly using the "%d" format specifier. Call Dev.Init in example code Without initializing the hardware nothing is shown on the display. Add constants for commands Translate the command names from the datasheet into constant names, similar to `epd/epd.go`. These names make it easier to understand what the driver does. One command, 0x37, is not documented in any of the datasheets available (Waveshare 2.13inch e-Paper, Good Display GDEH0213B72). Signed-off-by: Michael Hanselmann <public@hansmi.ch> |
5 years ago | |
|---|---|---|
| .github | 5 years ago | |
| ads1x15 | 5 years ago | |
| apa102 | 5 years ago | |
| as7262 | 5 years ago | |
| bh1750 | 5 years ago | |
| bitbang | 5 years ago | |
| bmxx80 | 5 years ago | |
| cap1xxx | 5 years ago | |
| ccs811 | 5 years ago | |
| ds18b20 | 5 years ago | |
| ds248x | 5 years ago | |
| ep0099 | 5 years ago | |
| epd | 5 years ago | |
| hd44780 | 5 years ago | |
| ht16k33 | 5 years ago | |
| hx711 | 5 years ago | |
| ina219 | 5 years ago | |
| inky | 5 years ago | |
| lepton | 5 years ago | |
| lirc | 5 years ago | |
| mcp23xxx | 5 years ago | |
| mcp9808 | 5 years ago | |
| mfrc522 | 5 years ago | |
| mpu9250 | 5 years ago | |
| nrzled | 5 years ago | |
| pca9548 | 5 years ago | |
| pca9685 | 5 years ago | |
| piblaster | 5 years ago | |
| rainbowhat | 5 years ago | |
| screen1d | 5 years ago | |
| sn3218 | 5 years ago | |
| ssd1306 | 5 years ago | |
| st7567 | 5 years ago | |
| tlv493d | 5 years ago | |
| tm1637 | 5 years ago | |
| unicornhd | 5 years ago | |
| waveshare2in13v2 | 5 years ago | |
| .gohci.yml | 5 years ago | |
| AUTHORS | 8 years ago | |
| CONTRIBUTING.md | 9 years ago | |
| CONTRIBUTORS | 7 years ago | |
| LICENSE | 10 years ago | |
| README.md | 5 years ago | |
| codecov.yml | 5 years ago | |
| doc.go | 5 years ago | |
| go.mod | 5 years ago | |
| go.sum | 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.
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.
