1
0
mirror of https://github.com/kidoman/embd synced 2024-06-13 22:29:53 +02:00
embd/samples/gpioshort.go
2015-12-28 18:58:12 -05:00

22 lines
259 B
Go

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