This commit is contained in:
didier committed 2024-07-26 12:16:46 -04:00
1 parent 86306269da
commit cbb4df00de
4 files changed
+24 -3

No files matched your search

+14 -2
View File
@@ -1,8 +1,20 @@
package main
import "fmt"
import (
"fmt"
"periph.io/x/conn/v3/gpio"
"periph.io/x/host/v3"
"periph.io/x/host/v3/orangepi"
"time"
)
func main() {
fmt.Println("Hello world")
host.Init()
t := time.NewTicker(500 * time.Millisecond)
for l := gpio.Low; ; l = !l {
orangepi.PA1_8.Out(l)
<-t.C
fmt.Println("tick")
}
}