mirror of
https://github.com/esp-rs/esp-idf-hal.git
synced 2025-10-02 14:44:51 +00:00
Fix example
This commit is contained in:
parent
873a3f17c8
commit
9979b7e385
@ -56,7 +56,7 @@ fn main() -> anyhow::Result<()> {
|
|||||||
SpiDeviceDriver::new_single(spi, sclk, sda, Some(sdi), Dma::Disabled, Some(cs), &config)?;
|
SpiDeviceDriver::new_single(spi, sclk, sda, Some(sdi), Dma::Disabled, Some(cs), &config)?;
|
||||||
|
|
||||||
// display interface abstraction from SPI and DC
|
// display interface abstraction from SPI and DC
|
||||||
let di = SPIInterfaceNoCS::new(spi, dc);
|
let di = SPIInterfaceNoCS::new(device, dc);
|
||||||
|
|
||||||
// create driver
|
// create driver
|
||||||
let mut display = ST7789::new(di, rst, 240, 240);
|
let mut display = ST7789::new(di, rst, 240, 240);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user