SPI Device with cgo

master
Friedl Ulrich 10 years ago
parent 99530f9ce4
commit ad23db2039

@ -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…
Cancel
Save