Skip to content

Commit

Permalink
enhance setRotation() compatible with QSPI #475
Browse files Browse the repository at this point in the history
  • Loading branch information
moononournation committed May 11, 2024
1 parent f622049 commit 7183867
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 33 deletions.
5 changes: 2 additions & 3 deletions src/display/Arduino_AXS15231B.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ bool Arduino_AXS15231B::begin(int32_t speed)
{
if (speed == GFX_NOT_DEFINED)
{
speed = 40000000UL; // NV3041A Maximum supported speed
speed = 40000000UL; // AXS15231B Maximum supported speed
}
return Arduino_TFT::begin(speed);
}
Expand Down Expand Up @@ -47,8 +47,7 @@ void Arduino_AXS15231B::setRotation(uint8_t r)
break;
}
_bus->beginWrite();
_bus->writeCommand(AXS15231B_MADCTL);
_bus->write(r);
_bus->writeC8D8(AXS15231B_MADCTL, r);
_bus->endWrite();
}

Expand Down
3 changes: 1 addition & 2 deletions src/display/Arduino_GC9106.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ void Arduino_GC9106::setRotation(uint8_t r)
break;
}
_bus->beginWrite();
_bus->writeCommand(GC9106_MADCTL);
_bus->write(r);
_bus->writeC8D8(GC9106_MADCTL, r);
_bus->endWrite();
}

Expand Down
3 changes: 1 addition & 2 deletions src/display/Arduino_GC9107.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ void Arduino_GC9107::setRotation(uint8_t r)
break;
}
_bus->beginWrite();
_bus->writeCommand(GC9107_MADCTL);
_bus->write(r);
_bus->writeC8D8(GC9107_MADCTL, r);
_bus->endWrite();
}

Expand Down
3 changes: 1 addition & 2 deletions src/display/Arduino_GC9A01.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ void Arduino_GC9A01::setRotation(uint8_t r)
break;
}
_bus->beginWrite();
_bus->writeCommand(GC9A01_MADCTL);
_bus->write(r);
_bus->writeC8D8(GC9A01_MADCTL, r);
_bus->endWrite();
}

Expand Down
3 changes: 1 addition & 2 deletions src/display/Arduino_ILI9481_18bit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@ void Arduino_ILI9481_18bit::setRotation(uint8_t r)
break;
}
_bus->beginWrite();
_bus->writeCommand(ILI9481_MADCTL);
_bus->write(r);
_bus->writeC8D8(ILI9481_MADCTL, r);
_bus->endWrite();
}

Expand Down
3 changes: 1 addition & 2 deletions src/display/Arduino_ILI9486_18bit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ void Arduino_ILI9486_18bit::setRotation(uint8_t r)
break;
}
_bus->beginWrite();
_bus->writeCommand(ILI9486_MADCTL);
_bus->write(r);
_bus->writeC8D8(ILI9486_MADCTL, r);
_bus->endWrite();
}

Expand Down
3 changes: 1 addition & 2 deletions src/display/Arduino_NT35310.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ void Arduino_NT35310::setRotation(uint8_t r)
break;
}
_bus->beginWrite();
_bus->writeCommand(NT35310_SET_ADDRESS_MODE);
_bus->write(r);
_bus->writeC8D8(NT35310_SET_ADDRESS_MODE, r);
_bus->endWrite();
}

Expand Down
3 changes: 1 addition & 2 deletions src/display/Arduino_NT39125.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ void Arduino_NT39125::setRotation(uint8_t r)
break;
}
_bus->beginWrite();
_bus->writeCommand(NT39125_MADCTL);
_bus->write(r);
_bus->writeC8D8(NT39125_MADCTL, r);
_bus->endWrite();
}

Expand Down
3 changes: 1 addition & 2 deletions src/display/Arduino_NV3023.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ void Arduino_NV3023::setRotation(uint8_t r)
break;
}
_bus->beginWrite();
_bus->writeCommand(NV3023_MADCTL);
_bus->write(r);
_bus->writeC8D8(NV3023_MADCTL, r);
_bus->endWrite();
}

Expand Down
3 changes: 1 addition & 2 deletions src/display/Arduino_NV3041A.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ void Arduino_NV3041A::setRotation(uint8_t r)
break;
}
_bus->beginWrite();
_bus->writeCommand(NV3041A_MADCTL);
_bus->write(r);
_bus->writeC8D8(NV3041A_MADCTL, r);
_bus->endWrite();
}

Expand Down
3 changes: 1 addition & 2 deletions src/display/Arduino_R61529.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ void Arduino_R61529::setRotation(uint8_t r)
break;
}
_bus->beginWrite();
_bus->writeCommand(R61529_MADCTL);
_bus->write(r);
_bus->writeC8D8(R61529_MADCTL, r);
_bus->endWrite();
}

Expand Down
6 changes: 2 additions & 4 deletions src/display/Arduino_SSD1351.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,8 @@ void Arduino_SSD1351::setRotation(uint8_t r)
break;
}
_bus->beginWrite();
_bus->writeCommand(SSD1351_SETREMAP);
_bus->write(r);
_bus->writeCommand(SSD1351_STARTLINE);
_bus->write(startline);
_bus->writeC8D8(SSD1351_SETREMAP, r);
_bus->writeC8D8(SSD1351_STARTLINE, startline);
_bus->endWrite();
}

Expand Down
3 changes: 1 addition & 2 deletions src/display/Arduino_ST7735.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ void Arduino_ST7735::setRotation(uint8_t r)
break;
}
_bus->beginWrite();
_bus->writeCommand(ST7735_MADCTL);
_bus->write(r);
_bus->writeC8D8(ST7735_MADCTL, r);
_bus->endWrite();
}

Expand Down
3 changes: 1 addition & 2 deletions src/display/Arduino_ST7789.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ void Arduino_ST7789::setRotation(uint8_t r)
break;
}
_bus->beginWrite();
_bus->writeCommand(ST7789_MADCTL);
_bus->write(r);
_bus->writeC8D8(ST7789_MADCTL, r);
_bus->endWrite();
}

Expand Down
3 changes: 1 addition & 2 deletions src/display/Arduino_ST7796.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ void Arduino_ST7796::setRotation(uint8_t r)
break;
}
_bus->beginWrite();
_bus->writeCommand(ST7796_MADCTL);
_bus->write(r);
_bus->writeC8D8(ST7796_MADCTL, r);
_bus->endWrite();
}

Expand Down

0 comments on commit 7183867

Please sign in to comment.