Skip to content

Commit

Permalink
update to release version of embedded-hal
Browse files Browse the repository at this point in the history
  • Loading branch information
tarfu committed Mar 13, 2024
1 parent c7affe1 commit 012aaa8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ readme = "README.md"
documentation = "https://docs.rs/st7735-lcd"

[dependencies]
embedded-hal = "1.0.0-rc.1"
embedded-hal = "1.0.0"
nb = "1.1.0"

[dependencies.embedded-graphics-core]
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub mod instruction;

use crate::instruction::Instruction;

use embedded_hal::delay::DelayUs;
use embedded_hal::delay::DelayNs;
use embedded_hal::spi;
use embedded_hal::digital::OutputPin;

Expand Down Expand Up @@ -82,7 +82,7 @@ where
/// Runs commands to initialize the display.
pub fn init<DELAY>(&mut self, delay: &mut DELAY) -> Result<(), ()>
where
DELAY: DelayUs,
DELAY: DelayNs,
{
self.hard_reset(delay)?;
self.write_command(Instruction::SWRESET, &[])?;
Expand Down Expand Up @@ -117,7 +117,7 @@ where

pub fn hard_reset<DELAY>(&mut self, delay: &mut DELAY) -> Result<(), ()>
where
DELAY: DelayUs,
DELAY: DelayNs,
{
self.rst.set_high().map_err(|_| ())?;
delay.delay_ms(10);
Expand Down

0 comments on commit 012aaa8

Please sign in to comment.