mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-09-02 04:49:00 +00:00
samd5x spi: use standard spi driver
This commit is contained in:
+3
-1
@@ -300,7 +300,9 @@ func (d *Device) sendCommand(cmd byte, data []byte) {
|
||||
d.dc.Low()
|
||||
d.driver.write8(cmd)
|
||||
d.dc.High()
|
||||
d.driver.write8sl(data)
|
||||
if data != nil && len(data) > 0 {
|
||||
d.driver.write8sl(data)
|
||||
}
|
||||
d.endWrite()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user