commit
b1830d16c5
|
|
@ -60,8 +60,12 @@ where
|
||||||
// high for data
|
// high for data
|
||||||
let _ = self.dc.set_high();
|
let _ = self.dc.set_high();
|
||||||
|
|
||||||
// Transfer data (u8-array) over spi
|
for val in data.iter().copied() {
|
||||||
self.write(spi, data)
|
// Transfer data one u8 at a time over spi
|
||||||
|
self.write(spi, &[val])?;
|
||||||
|
}
|
||||||
|
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Basic function for sending [Commands](Command) and the data belonging to it.
|
/// Basic function for sending [Commands](Command) and the data belonging to it.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue