Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
moononournation committed May 27, 2021
1 parent a2fea8d commit 33e8145
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/PDQgraphicstest/PDQgraphicstest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ Arduino_GFX *gfx = new Arduino_ILI9341(bus, TFT_RST, 0 /* rotation */, false /*
// Arduino_GFX *gfx = new Arduino_NT35510(bus, TFT_RST, 0 /* rotation */);

// NT39125 LCD 240x376
// Arduino_GFX *gfx = new Arduino_NT39125(bus, TFT_RST, 2 /* rotation */, false /* IPS */, 240, 376, 0, 0, 0, 56);
// Arduino_GFX *gfx = new Arduino_NT39125(bus, TFT_RST, 0 /* rotation */, false /* IPS */, 240, 376, 0, 0, 0, 56);

// R61529 IPS LCD 320x480
// Arduino_GFX *gfx = new Arduino_R61529(bus, TFT_RST, 0 /* rotation */, true /* IPS */);
Expand Down Expand Up @@ -243,7 +243,7 @@ Arduino_GFX *gfx = new Arduino_ILI9341(bus, TFT_RST, 0 /* rotation */, false /*
// 1.5" GREENTAB C 128x128
// Arduino_GFX *gfx = new Arduino_ST7735(bus, TFT_RST, 0 /* rotation */, false /* IPS */, 128 /* width */, 128 /* height */, 0 /* col offset 1 */, 32 /* row offset 1 */);
// 0.96" IPS LCD 80x160
// Arduino_GFX *gfx = new Arduino_ST7735(bus, TFT_RST, 3 /* rotation */, true /* IPS */, 80 /* width */, 160 /* height */, 26 /* col offset 1 */, 1 /* row offset 1 */, 26 /* col offset 2 */, 1 /* row offset 2 */);
// Arduino_GFX *gfx = new Arduino_ST7735(bus, TFT_RST, 0 /* rotation */, true /* IPS */, 80 /* width */, 160 /* height */, 26 /* col offset 1 */, 1 /* row offset 1 */, 26 /* col offset 2 */, 1 /* row offset 2 */);

// ST7789 LCD
// 2.4" LCD 240x320
Expand Down
12 changes: 6 additions & 6 deletions src/display/Arduino_NT39125.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,18 @@ void Arduino_NT39125::setRotation(uint8_t r)
Arduino_TFT::setRotation(r);
switch (_rotation)
{
case 0:
r = NT39125_MADCTL_BGR | NT39125_MADCTL_MX;
break;
case 1:
case 3:
r = NT39125_MADCTL_BGR | NT39125_MADCTL_MV;
break;
case 2:
r = NT39125_MADCTL_BGR | NT39125_MADCTL_MY;
r = NT39125_MADCTL_BGR | NT39125_MADCTL_MX;
break;
case 3:
case 1:
r = NT39125_MADCTL_BGR | NT39125_MADCTL_MV | NT39125_MADCTL_MX | NT39125_MADCTL_MY;
break;
default: // case 0:
r = NT39125_MADCTL_BGR | NT39125_MADCTL_MY;
break;
}

_bus->beginWrite();
Expand Down

0 comments on commit 33e8145

Please sign in to comment.