mirror of
https://github.com/kidoman/embd
synced 2024-12-22 21:00:05 +01:00
779096e668
this will allow people to use glog options (like -v=3) to increase verbosity of the log output
21 lines
224 B
Go
21 lines
224 B
Go
// +build ignore
|
|
|
|
package main
|
|
|
|
import (
|
|
"flag"
|
|
"fmt"
|
|
|
|
"github.com/kidoman/embd"
|
|
)
|
|
|
|
func main() {
|
|
flag.Parse()
|
|
|
|
embd.InitGPIO()
|
|
defer embd.CloseGPIO()
|
|
|
|
val, _ := embd.AnalogRead(0)
|
|
fmt.Printf("Reading: %v\n", val)
|
|
}
|