Refactoring
parent
4a9335b6d0
commit
00c809a354
@ -0,0 +1,13 @@
|
||||
// +build !linux
|
||||
|
||||
package rfm69
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/davecheney/gpio"
|
||||
)
|
||||
|
||||
func getPin() (gpio.Pin, error) {
|
||||
return nil, errors.New("not implemented")
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package rfm69
|
||||
|
||||
import "github.com/davecheney/gpio"
|
||||
|
||||
const (
|
||||
irqPin = gpio.GPIO25
|
||||
)
|
||||
|
||||
func getPin() (gpio.Pin, error) {
|
||||
return gpio.OpenPin(irqPin, gpio.ModeInput)
|
||||
}
|
Loading…
Reference in New Issue