SPI Device with cgo
This commit is contained in:
parent
99530f9ce4
commit
ad23db2039
1 changed files with 4 additions and 1 deletions
|
@ -26,7 +26,10 @@ func TestRfm69(t *testing.T) {
|
||||||
}
|
}
|
||||||
gpio.ActiveLow(false)
|
gpio.ActiveLow(false)
|
||||||
|
|
||||||
spiBus := NewSPIDevice()
|
spiBus, err := NewSPIDevice()
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
defer spiBus.Close()
|
defer spiBus.Close()
|
||||||
|
|
||||||
rfm, err := NewDevice(spiBus, gpio, 1, 10, true)
|
rfm, err := NewDevice(spiBus, gpio, 1, 10, true)
|
||||||
|
|
Loading…
Add table
Reference in a new issue