perhaps
This commit is contained in:
1 parent
ddcc8c4ba2
commit
357ec2b8af
2 files changed
+8
-8
No files matched your search
@@ -2,10 +2,10 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"go-orange/orangefork"
|
||||
_ "go-orange/orangefork"
|
||||
"periph.io/x/conn/v3/gpio"
|
||||
"periph.io/x/host/v3"
|
||||
"periph.io/x/host/v3/orangepi"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -24,22 +24,22 @@ func main() {
|
||||
t := time.NewTicker(500 * time.Millisecond)
|
||||
for l := gpio.Low; ; l = !l {
|
||||
|
||||
if err := orangepi.PA1_11.Out(l); err != nil {
|
||||
if err := orangefork.PA1_11.Out(l); err != nil {
|
||||
fmt.Printf("PA1_11 %s\n", err)
|
||||
}
|
||||
if err := orangepi.PA1_12.Out(l); err != nil {
|
||||
if err := orangefork.PA1_12.Out(l); err != nil {
|
||||
fmt.Printf("PA1_12 %s\n", err)
|
||||
}
|
||||
if err := orangepi.PA1_10.Out(l); err != nil {
|
||||
if err := orangefork.PA1_10.Out(l); err != nil {
|
||||
fmt.Printf("PA1_10 %s\n", err)
|
||||
}
|
||||
if err := orangepi.PA1_8.Out(l); err != nil {
|
||||
if err := orangefork.PA1_8.Out(l); err != nil {
|
||||
fmt.Printf("PA1_8 %s\n", err)
|
||||
}
|
||||
if err := orangepi.PA1_7.Out(l); err != nil {
|
||||
if err := orangefork.PA1_7.Out(l); err != nil {
|
||||
fmt.Printf("PA1_7 %s\n", err)
|
||||
}
|
||||
if err := orangepi.PA1_5.Out(l); err != nil {
|
||||
if err := orangefork.PA1_5.Out(l); err != nil {
|
||||
fmt.Printf("PA1_5 %s\n", err)
|
||||
}
|
||||
<-t.C
|
||||
|
||||
Reference in new issue
Block a user