embd/samples/gpioshort.go

20 lines
220 B
Go
Raw Normal View History

2014-03-02 08:06:34 +01:00
// +build ignore
package main
import (
"flag"
"github.com/kidoman/embd"
)
func main() {
flag.Parse()
2014-03-02 20:21:23 +01:00
embd.InitGPIO()
defer embd.CloseGPIO()
2014-03-02 20:21:23 +01:00
embd.SetDirection(10, embd.Out)
embd.DigitalWrite(10, embd.High)
}