diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-04-22 19:58:24 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-04-22 19:58:24 +0200 |
| commit | 3251a21fb7f7d0bcbd4e900274f4917c58ab9c87 (patch) | |
| tree | 1193acee1e41822b0cbf538f6271ccad35c056aa /examples/rp/src/bin/spi_display.rs | |
| parent | ea0a701ebd142ea42e05e51e844bd53cc9bdf354 (diff) | |
Switch to crates.io embedded-hal, embedded-hal-async.
This temporarily removes support for the async UART trait, since it's
not yet in embedded-hal-async.
Diffstat (limited to 'examples/rp/src/bin/spi_display.rs')
| -rw-r--r-- | examples/rp/src/bin/spi_display.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/rp/src/bin/spi_display.rs b/examples/rp/src/bin/spi_display.rs index bc93e0617..5c3c4c4c5 100644 --- a/examples/rp/src/bin/spi_display.rs +++ b/examples/rp/src/bin/spi_display.rs | |||
| @@ -110,9 +110,9 @@ mod shared_spi { | |||
| 110 | use core::cell::RefCell; | 110 | use core::cell::RefCell; |
| 111 | use core::fmt::Debug; | 111 | use core::fmt::Debug; |
| 112 | 112 | ||
| 113 | use embedded_hal::digital::blocking::OutputPin; | 113 | use embedded_hal_1::digital::blocking::OutputPin; |
| 114 | use embedded_hal::spi; | 114 | use embedded_hal_1::spi; |
| 115 | use embedded_hal::spi::blocking::SpiDevice; | 115 | use embedded_hal_1::spi::blocking::SpiDevice; |
| 116 | 116 | ||
| 117 | #[derive(Copy, Clone, Eq, PartialEq, Debug)] | 117 | #[derive(Copy, Clone, Eq, PartialEq, Debug)] |
| 118 | pub enum SpiDeviceWithCsError<BUS, CS> { | 118 | pub enum SpiDeviceWithCsError<BUS, CS> { |
| @@ -184,7 +184,7 @@ mod shared_spi { | |||
| 184 | 184 | ||
| 185 | /// Driver for the XPT2046 resistive touchscreen sensor | 185 | /// Driver for the XPT2046 resistive touchscreen sensor |
| 186 | mod touch { | 186 | mod touch { |
| 187 | use embedded_hal::spi::blocking::{SpiBus, SpiBusRead, SpiBusWrite, SpiDevice}; | 187 | use embedded_hal_1::spi::blocking::{SpiBus, SpiBusRead, SpiBusWrite, SpiDevice}; |
| 188 | 188 | ||
| 189 | struct Calibration { | 189 | struct Calibration { |
| 190 | x1: i32, | 190 | x1: i32, |
| @@ -248,8 +248,8 @@ mod touch { | |||
| 248 | 248 | ||
| 249 | mod my_display_interface { | 249 | mod my_display_interface { |
| 250 | use display_interface::{DataFormat, DisplayError, WriteOnlyDataCommand}; | 250 | use display_interface::{DataFormat, DisplayError, WriteOnlyDataCommand}; |
| 251 | use embedded_hal::digital::blocking::OutputPin; | 251 | use embedded_hal_1::digital::blocking::OutputPin; |
| 252 | use embedded_hal::spi::blocking::{SpiBusWrite, SpiDevice}; | 252 | use embedded_hal_1::spi::blocking::{SpiBusWrite, SpiDevice}; |
| 253 | 253 | ||
| 254 | /// SPI display interface. | 254 | /// SPI display interface. |
| 255 | /// | 255 | /// |
