Skip to content

Commit

Permalink
doc: clearer comment on wich display requires 120ms
Browse files Browse the repository at this point in the history
  • Loading branch information
xgroleau committed Oct 6, 2023
1 parent 2de4c18 commit e15a375
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mipidsi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ where
///
pub fn sleep<D: DelayUs<u32>>(&mut self, delay: &mut D) -> Result<(), Error> {
self.dcs.write_command(dcs::EnterSleepMode)?;
delay.delay_us(120_000); // All supported models requires a 120ms delay
// All supported models requires a 120ms delay before issuing other commands
delay.delay_us(120_000);
Ok(())
}

Expand All @@ -270,7 +271,8 @@ where
///
pub fn wake<D: DelayUs<u32>>(&mut self, delay: &mut D) -> Result<(), Error> {
self.dcs.write_command(dcs::ExitSleepMode)?;
delay.delay_us(120_000); // ST77xx have the highest wait delay of 120ms
// ST7789 and st7735s have the highest minimal delay of 120ms
delay.delay_us(120_000);
Ok(())
}
}

0 comments on commit e15a375

Please sign in to comment.