From e15a375cced751777b526b21e5ce03202420c0a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?xgroleau=F0=9F=90=A2?= Date: Fri, 6 Oct 2023 11:26:59 -0400 Subject: [PATCH] doc: clearer comment on wich display requires 120ms --- mipidsi/src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mipidsi/src/lib.rs b/mipidsi/src/lib.rs index a41b812..4fe1e64 100644 --- a/mipidsi/src/lib.rs +++ b/mipidsi/src/lib.rs @@ -261,7 +261,8 @@ where /// pub fn sleep>(&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(()) } @@ -270,7 +271,8 @@ where /// pub fn wake>(&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(()) } }