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

Only call SetAddressWindow if the update window changes #652

Merged
merged 2 commits into from
May 2, 2023

Conversation

adrianstevens
Copy link
Contributor

No description provided.

Copy link
Contributor

@KallDrexx KallDrexx left a comment

Choose a reason for hiding this comment

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

Looks good to me except for the blunder I made

SetAddressBuffer[0] = (byte)(y0 >> 8);
SetAddressBuffer[0] = (byte)(y0 & 0xff); // XEND
SetAddressBuffer[0] = (byte)(y1 >> 8);
SetAddressBuffer[0] = (byte)(y1 & 0xff); // YEND
Copy link
Contributor

Choose a reason for hiding this comment

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

I apparently forgot to Write() the RASET command, and I have all the indexes set to 0 for all the bytes. That ... should probably be fixed.

@adrianstevens adrianstevens merged commit a877fcc into develop May 2, 2023
@KallDrexx KallDrexx deleted the adrian/setaddress-optimization-tftspi branch May 2, 2023 00:47
@KallDrexx KallDrexx restored the adrian/setaddress-optimization-tftspi branch May 2, 2023 01:24
@jorgedevs jorgedevs deleted the adrian/setaddress-optimization-tftspi branch May 3, 2023 20:06
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