Changed orange-fork
This commit is contained in:
1 parent
fb5f6a0d85
commit
8b9b21fa08
5 files changed
+740
-6
No files matched your search
@@ -2,10 +2,9 @@ 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/zero3"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -20,10 +19,11 @@ func main() {
|
||||
t := time.NewTicker(500 * time.Millisecond)
|
||||
for l := gpio.Low; ; l = !l {
|
||||
fmt.Printf("Setting to %t \n", l)
|
||||
orangefork.PC1_15.Out(l)
|
||||
orangefork.PC1_16.Out(l)
|
||||
orangefork.PC1_5.Out(l)
|
||||
orangefork.PC1_6.Out(l)
|
||||
zero3.PA1_12.Out(l)
|
||||
//orangefork.PC1_15.Out(l)
|
||||
//orangefork.PC1_16.Out(l)
|
||||
//orangefork.PC1_5.Out(l)
|
||||
//orangefork.PC1_6.Out(l)
|
||||
<-t.C
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user