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().)
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().)