w1100n
This site is best viewed in Google Chrome
7/13/2019 16:00

https://github.com/stianeikeland/go-rpio

package main

import (
    "fmt"
    "github.com/stianeikeland/go-rpio/v4"
    "time"
)

func main() {

    err := rpio.Open()
    if err != nil {
        fmt.Println(err)
        return
    }
    pin := rpio.Pin(17)

    pin.Low()
    time.Sleep(5 * time.Second)
    pin.High()

}

<< Previous Posts Newer Posts >>
辽ICP备14012896