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
gsexton 6b31587b4f
inky: Fix Impression Driver (#106)
*Changed the SPI CS pin to work under automatic or manual control. This allows it to work when CS is controlled by SPI, or when it is controlled manually. We don't want it to fail in the configuration the Pimoroni python driver requires.
*Changed the wait() routine to use a 10ms debounce on WaitForEdge() as the python driver does.
*If the BUSY line is high on entry to wait to go directly to a timed wait as the python driver does.
*Fixed errors in the palette definitions. Removed extra memory allocation.
1 year 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
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 Add TI HDC302x Sensor Support (#83) 1 year 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: Fix Impression Driver (#106) 1 year 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
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
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 Add TI HDC302x Sensor Support (#83) 1 year 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
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 adxl345: Driver, initial commit for review. (#66) 2 years 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.