From 427127fe2ddd97218b170f3578fc3aedff17f663 Mon Sep 17 00:00:00 2001 From: Grant Miller Date: Fri, 28 Aug 2020 15:28:31 -0500 Subject: [PATCH] Use `set_orientation` in initialization --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index fda0f4b..682b04d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -108,7 +108,8 @@ where // and 120ms before sending Sleep Out delay.delay_ms(120); - ili9341.command(Command::MemoryAccessControl, &[0x48])?; + ili9341.set_orientation(Orientation::Portrait)?; + ili9341.command(Command::PixelFormatSet, &[0x55])?; ili9341.command(Command::SleepOut, &[])?;