1
0
mirror of https://github.com/kidoman/embd synced 2024-06-08 12:07:48 +02:00
embd/samples/gpioshort.go
2016-02-06 00:51:02 -08:00

22 lines
259 B
Go

// +build ignore
package main
import (
"flag"
"github.com/kidoman/embd"
_ "github.com/kidoman/embd/host/all"
)
func main() {
flag.Parse()
embd.InitGPIO()
defer embd.CloseGPIO()
embd.SetDirection(10, embd.Out)
embd.DigitalWrite(10, embd.High)
}