Skip to content

Commit

Permalink
Merge pull request #537 from MakerM0/master
Browse files Browse the repository at this point in the history
Update Arduino_NV3023.cpp ( fix Rotation )
  • Loading branch information
moononournation authored Sep 17, 2024
2 parents 1c4362e + 6d821ce commit f243c1b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/display/Arduino_NV3023.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f243c1b

Please sign in to comment.