Closed qwandor closed 3 years ago
Okay, I've added a new constructor with a wrapper struct to support SPI implementations which only implement Write
and Transfer
.It does make the type a little uglier unfortunately, but I couldn't see any way around that.
Done.
Using SPI transactions for reading and writing registers prevents
spidev
from releasing the CS line in the middle. Also added a constructor which doesn't take a CS pin, because when usinglinux_embedded_hal
spidev
manages it automatically.Fixes #26.