boom
This commit is contained in:
1 parent
86306269da
commit
cbb4df00de
4 files changed
+24
-3
No files matched your search
@@ -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")
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user