Skip to content

Commit

Permalink
#46
Browse files Browse the repository at this point in the history
  • Loading branch information
moononournation committed Jun 16, 2022
1 parent 4cb69e5 commit f2228d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/display/Arduino_ILI9342.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f2228d6

Please sign in to comment.