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:
parent
10992981e3
commit
779096e668
22 changed files with 91 additions and 10 deletions
|
@ -3,12 +3,15 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"time"
|
||||
|
||||
"github.com/kidoman/embd"
|
||||
)
|
||||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
|
||||
if err := embd.InitGPIO(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue