updated dependencies
This commit is contained in:
1 parent
3e39272091
commit
0d65285f3c
1 file changed
+8
@@ -31,7 +31,15 @@ func main() {
|
||||
fmt.Printf("PC1_15 read is : %s\n", pin.Read())
|
||||
}
|
||||
|
||||
if err := orangefork.PC1_15.Out(gpio.High); err != nil {
|
||||
fmt.Printf("%s\n", err)
|
||||
} else {
|
||||
fmt.Println("No problem setting PC1_15 to High")
|
||||
}
|
||||
|
||||
if err := orangefork.PC1_15.Out(gpio.Low); err != nil {
|
||||
fmt.Printf("%s\n", err)
|
||||
} else {
|
||||
fmt.Println("No problem setting PC1_15 to Low")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user