From f2228d65c41b259649a47eb11be440c4a4db3d8f Mon Sep 17 00:00:00 2001 From: moononournation Date: Thu, 16 Jun 2022 23:35:46 +0800 Subject: [PATCH] #46 --- src/display/Arduino_ILI9342.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/display/Arduino_ILI9342.cpp b/src/display/Arduino_ILI9342.cpp index 1a39c9b7..6d9a35d0 100644 --- a/src/display/Arduino_ILI9342.cpp +++ b/src/display/Arduino_ILI9342.cpp @@ -29,16 +29,16 @@ void Arduino_ILI9342::setRotation(uint8_t r) switch (_rotation) { case 1: - r = (ILI9342_MADCTL_MV | ILI9342_MADCTL_MX | ILI9342_MADCTL_BGR); + r = (ILI9342_MADCTL_MV | ILI9342_MADCTL_MY | ILI9342_MADCTL_BGR); break; case 2: - r = (ILI9342_MADCTL_MX | ILI9342_MADCTL_MY | ILI9342_MADCTL_BGR); + r = (ILI9342_MADCTL_BGR); break; case 3: - r = (ILI9342_MADCTL_MV | ILI9342_MADCTL_MY | ILI9342_MADCTL_BGR); + r = (ILI9342_MADCTL_MV | ILI9342_MADCTL_MX | ILI9342_MADCTL_BGR); break; default: // case 0: - r = (ILI9342_MADCTL_BGR); + r = (ILI9342_MADCTL_MX | ILI9342_MADCTL_MY | ILI9342_MADCTL_BGR); break; } _bus->beginWrite();