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

CASET/RASET max value issue #3

Open
benheck opened this issue Nov 23, 2022 · 2 comments
Open

CASET/RASET max value issue #3

benheck opened this issue Nov 23, 2022 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@benheck
Copy link

benheck commented Nov 23, 2022

I noticed this when comparing this ARM code to ST7789 code I wrote for an Atmel last year. (for the ST7789 240x240)

CASET/RASET sets the address window by coordinates. For a 240x240, this should be 0,0, 239, 239.

I fixed the issue by subtracting 1 from the CASET/RASET calls.

void st7789_set_cursor(uint16_t x, uint16_t y)
{
st7789_caset(x, st7789_width - 1);
st7789_raset(y, st7789_height - 1);
}

@stale
Copy link

stale bot commented Jan 22, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 22, 2023
@sandeepmistry
Copy link
Member

hi @benheck,

Thank you for bringing this up, do you have time to make a pull request for this change and provide a code snippet to validate the behaviour before and after the change.

@sandeepmistry sandeepmistry added the help wanted Extra attention is needed label Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants