mirror of
https://github.com/yuri91/ili9341-rs.git
synced 2024-11-24 07:30:59 +00:00
Use set_orientation
in initialization
This commit is contained in:
parent
780a5f0c25
commit
427127fe2d
1 changed files with 2 additions and 1 deletions
|
@ -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, &[])?;
|
||||
|
|
Loading…
Reference in a new issue