Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DISPLAY_SWAP_BGR was not swapping colours, according to pg 192 of (In… #132

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ili9341.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ void InitILI9341()
#ifdef DISPLAY_ROTATE_180_DEGREES
madctl ^= MADCTL_ROTATE_180_DEGREES;
#endif
// The set value of MADCTL is the exclusive OR between 1st param of IFCTL and MADCTL, see spec pg. 192
SPI_TRANSFER(0xF6/*IFCTL: Interface Control*/, 0);
SPI_TRANSFER(0x36/*MADCTL: Memory Access Control*/, madctl);

#ifdef DISPLAY_INVERT_COLORS
Expand Down