Skip to content

Commit

Permalink
#46
Browse files Browse the repository at this point in the history
  • Loading branch information
moononournation committed May 28, 2022
1 parent 48a9af0 commit 6a82ee5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/display/Arduino_ILI9488.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ void Arduino_ILI9488::setRotation(uint8_t r)
switch (_rotation)
{
case 1:
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MV | ILI9488_MADCTL_MX | ILI9488_MADCTL_MY);
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MV);
break;
case 2:
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MX);
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MY);
break;
case 3:
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MV);
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MV | ILI9488_MADCTL_MX | ILI9488_MADCTL_MY);
break;
default: // case 0:
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MY);
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MX);
break;
}
_bus->beginWrite();
Expand Down
8 changes: 4 additions & 4 deletions src/display/Arduino_ILI9488_18bit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ void Arduino_ILI9488_18bit::setRotation(uint8_t r)
switch (_rotation)
{
case 1:
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MV | ILI9488_MADCTL_MX | ILI9488_MADCTL_MY);
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MV);
break;
case 2:
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MX);
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MY);
break;
case 3:
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MV);
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MV | ILI9488_MADCTL_MX | ILI9488_MADCTL_MY);
break;
default: // case 0:
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MY);
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MX);
break;
}
_bus->beginWrite();
Expand Down
8 changes: 4 additions & 4 deletions src/display/Arduino_ILI9488_3bit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,17 @@ void Arduino_ILI9488_3bit::begin(int32_t speed)
// setRotation
switch (_rotation)
{
case 3:
case 1:
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MV);
break;
case 2:
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MX);
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MY);
break;
case 1:
case 3:
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MV | ILI9488_MADCTL_MX | ILI9488_MADCTL_MY);
break;
default: // case 0:
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MY);
r = (ILI9488_MADCTL_BGR | ILI9488_MADCTL_MX);
break;
}
_bus->beginWrite();
Expand Down

0 comments on commit 6a82ee5

Please sign in to comment.