1
0
mirror of https://github.com/kidoman/embd synced 2024-12-31 17:11:36 +01:00
embd/samples/gpioshort.go
Kunal Powar 779096e668 samples: enable flag parsing
this will allow people to use glog options (like -v=3) to increase
verbosity of the log output
2014-04-05 01:43:16 +05:30

20 lines
220 B
Go

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