PaulStoffregen / ILI9341_t3

Optimized ILI9341 TFT Library
http://pjrc.com/store/display_ili9341.html
242 stars 95 forks source link

Support for Landscape native ILI9341 modules, and RGB (vs BGR) modules. #67

Open SmittyHalibut opened 2 years ago

SmittyHalibut commented 2 years ago

I bought some cheap ILI9341 modules off eBay and they were landscape instead of portrait, and they RGB instead of BGR. This PR provide support for both these differences.

This PR is backwards compatible; with no changes to your user code, this module operates exactly as before.

But if you've got a landscape native module, call setLandscape() then setRotation() to apply the change.

Similarly, if you've got an RGB native module, call setRGB() then setRotation() to apply the change. (It's coincidence that both these changes are set at the same time by setRotation().)