Skip to content

Commit

Permalink
#46
Browse files Browse the repository at this point in the history
  • Loading branch information
moononournation committed May 27, 2021
1 parent 33e8145 commit b0470f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/display/Arduino_NT39125.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@ void Arduino_NT39125::setRotation(uint8_t r)
switch (_rotation)
{
case 3:
r = NT39125_MADCTL_BGR | NT39125_MADCTL_MV;
r = NT39125_MADCTL_BGR | NT39125_MADCTL_MV | NT39125_MADCTL_MX | NT39125_MADCTL_MY;
break;
case 2:
r = NT39125_MADCTL_BGR | NT39125_MADCTL_MX;
r = NT39125_MADCTL_BGR | NT39125_MADCTL_MY;
break;
case 1:
r = NT39125_MADCTL_BGR | NT39125_MADCTL_MV | NT39125_MADCTL_MX | NT39125_MADCTL_MY;
r = NT39125_MADCTL_BGR | NT39125_MADCTL_MV;
break;
default: // case 0:
r = NT39125_MADCTL_BGR | NT39125_MADCTL_MY;
r = NT39125_MADCTL_BGR | NT39125_MADCTL_MX;
break;
}

Expand Down

0 comments on commit b0470f5

Please sign in to comment.