added more logs
This commit is contained in:
1 parent
24ca3fb4a0
commit
636c52759f
1 file changed
+7
-1
@@ -9,7 +9,13 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
host.Init()
|
s, err := host.Init()
|
||||||
|
if err != nil {
|
||||||
|
fmt.Printf("%s", err)
|
||||||
|
} else {
|
||||||
|
fmt.Printf("OK: %s\n\n", s)
|
||||||
|
}
|
||||||
|
//fmt.Printf("Is arm? %t", orangepi.is)
|
||||||
t := time.NewTicker(500 * time.Millisecond)
|
t := time.NewTicker(500 * time.Millisecond)
|
||||||
for l := gpio.Low; ; l = !l {
|
for l := gpio.Low; ; l = !l {
|
||||||
err := orangepi.PA1_8.Out(l)
|
err := orangepi.PA1_8.Out(l)
|
||||||
|
|||||||
Reference in new issue
Block a user