Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
xgroleau committed Oct 3, 2023
1 parent 1ed4f89 commit 7910eb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mipidsi/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ where
/// Consumes the builder to create a new [Display] with an optional reset [OutputPin].
/// Blocks using the provided [DelayUs] `delay_source` to perform the display initialization.
/// The display will be awake ready to use, no need to call [Display::wake] after init.
///
///
/// ### WARNING
/// The reset pin needs to be in *high* state in order for the display to operate.
/// If it wasn't provided the user needs to ensure this is the case.
Expand Down
4 changes: 2 additions & 2 deletions mipidsi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,15 +253,15 @@ where
self.dcs
.write_command(dcs::SetTearingEffect(tearing_effect))
}

///
/// Puts the display to sleep, reducing power consumption.
/// Need to call [Self::wake] before issuing other commands
///
pub fn sleep(&mut self) -> Result<(), Error> {
self.dcs.write_command(dcs::EnterSleepMode)
}

///
/// Wakes the display after it's been set to sleep via [Self::sleep]
///
Expand Down

0 comments on commit 7910eb0

Please sign in to comment.