diff --git a/src/display/Arduino_NV3023.cpp b/src/display/Arduino_NV3023.cpp index 15272d4..692582f 100644 --- a/src/display/Arduino_NV3023.cpp +++ b/src/display/Arduino_NV3023.cpp @@ -44,16 +44,16 @@ void Arduino_NV3023::setRotation(uint8_t r) switch (_rotation) { case 1: - r = NV3023_MADCTL_MY | NV3023_MADCTL_MV | NV3023_MADCTL_BGR; - break; + r = NV3023_MADCTL_MY | NV3023_MADCTL_MV | NV3023_MADCTL_MX | NV3023_MADCTL_BGR; + break; case 2: - r = NV3023_MADCTL_MY | NV3023_MADCTL_BGR; - break; + r = NV3023_MADCTL_MX | NV3023_MADCTL_BGR; + break; case 3: - r = NV3023_MADCTL_MX | NV3023_MADCTL_MV | NV3023_MADCTL_BGR; - break; + r = NV3023_MADCTL_MV | NV3023_MADCTL_BGR; + break; default: // case 0: - r = NV3023_MADCTL_MY | NV3023_MADCTL_MX | NV3023_MADCTL_BGR; + r = NV3023_MADCTL_MY | NV3023_MADCTL_BGR; break; } _bus->beginWrite();