mirror of
https://github.com/kidoman/embd
synced 2024-12-31 17:11:36 +01:00
779096e668
this will allow people to use glog options (like -v=3) to increase verbosity of the log output
20 lines
220 B
Go
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)
|
|
}
|