1
0
Fork 0
mirror of https://github.com/kidoman/embd synced 2025-07-03 11:57:38 +02:00

samples: enable flag parsing

this will allow people to use glog options (like -v=3) to increase
verbosity of the log output
This commit is contained in:
Kunal Powar 2014-04-05 01:43:16 +05:30
parent 10992981e3
commit 779096e668
22 changed files with 91 additions and 10 deletions

View file

@ -2,9 +2,15 @@
package main
import "github.com/kidoman/embd"
import (
"flag"
"github.com/kidoman/embd"
)
func main() {
flag.Parse()
embd.InitGPIO()
defer embd.CloseGPIO()