Skip to content

periph/host

Folders and files

NameName
Last commit message
Last commit date
Sep 18, 2024
Mar 31, 2023
Oct 27, 2022
Jan 9, 2025
Oct 27, 2022
Oct 27, 2022
Mar 31, 2023
Oct 27, 2022
Apr 27, 2023
Oct 27, 2022
Mar 15, 2025
Sep 12, 2021
Mar 31, 2023
Sep 23, 2024
Oct 27, 2022
Dec 16, 2022
Oct 27, 2022
Jan 17, 2025
Oct 27, 2022
Jan 9, 2025
Sep 12, 2021
Sep 18, 2024
Oct 27, 2022
Oct 16, 2021
Aug 9, 2024
Mar 27, 2017
Dec 16, 2022
Oct 13, 2016
Aug 9, 2024
Dec 25, 2020
Dec 25, 2020
Dec 30, 2020
Mar 15, 2025
Mar 15, 2025
Oct 16, 2021
Dec 30, 2020
Dec 30, 2020
Sep 23, 2024
Dec 25, 2020

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.