Skip to content

periph/conn

Folders and files

NameName
Last commit message
Last commit date
Sep 18, 2024
Apr 27, 2023
Dec 30, 2020
Jan 12, 2025
Sep 11, 2021
Feb 1, 2025
Dec 30, 2020
Dec 30, 2020
Dec 24, 2020
Dec 30, 2020
Oct 27, 2022
Oct 27, 2022
Oct 27, 2022
Dec 30, 2020
Oct 27, 2022
Dec 30, 2020
Oct 16, 2021
Aug 9, 2024
Mar 27, 2017
Jan 29, 2019
Oct 13, 2016
Aug 9, 2024
Dec 25, 2020
Dec 24, 2020
Dec 24, 2020
Oct 27, 2022
Dec 30, 2020
Aug 9, 2024
Aug 9, 2024

Repository files navigation

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.