mirror of
https://github.com/stianeikeland/go-rpio.git
synced 2025-03-13 21:48:41 +01:00
more verbose
This commit is contained in:
parent
bdc28d57d0
commit
205ee01d13
|
@ -55,16 +55,14 @@ func main() {
|
|||
} else {
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
if *low {
|
||||
} else {
|
||||
if res == rpio.Low {
|
||||
os.Exit(0)
|
||||
} else {
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
os.Exit(1)
|
||||
fmt.Printf("Raspberry PI GPIO status for pin #%d - %d\n", *pinNumber, pin.Read())
|
||||
} else {
|
||||
switch *set {
|
||||
case 1:
|
||||
|
|
Loading…
Reference in New Issue
Block a user