Skip to content

Reorder the MADCTL bits to match the datasheet#3

Merged
engdoreis merged 1 commit into
engdoreis:mainfrom
alees24:madctl-reorder
Oct 31, 2024
Merged

Reorder the MADCTL bits to match the datasheet#3
engdoreis merged 1 commit into
engdoreis:mainfrom
alees24:madctl-reorder

Conversation

@alees24
Copy link
Copy Markdown
Contributor

@alees24 alees24 commented Oct 31, 2024

When none of the MV/X/Y bits is set, ie. no transformation, the top-left of the display is such that the ribbon cable of the LCD module enters the top edge, with column numbers increasing from left-to-right, and row numbers increasing upon moving further down the panel, away from the ribbon cable.

This PR corrects the declaration of the MV, MX and MY bits and updates the orientation settings accordingly so client code using the API should be unaffected.

When none of the MV/X/Y bits is set, ie. no transformation, the
top-left of the display is such that the ribbon cable of the LCD
module enters the top edge, with column numbers increasing from
left-to-right, and row numbers increasing upon moving further
down the panel, away from the ribbon cable.

This PR corrects the declaration of the MV, MX and MY bits and
updates the orientation settings accordingly so client code using
the API should be unaffected.
Copy link
Copy Markdown
Owner

@engdoreis engdoreis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR.

@engdoreis engdoreis merged commit 66f87a0 into engdoreis:main Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants