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

spitftbitmap.ino Drawing at 0,0 #47

Open
Cosford opened this issue Aug 2, 2017 · 0 comments
Open

spitftbitmap.ino Drawing at 0,0 #47

Cosford opened this issue Aug 2, 2017 · 0 comments

Comments

@Cosford
Copy link

Cosford commented Aug 2, 2017

This bitmap drawing example always draws at 0, 0 regardless of the x and y setting.
I believe this is due to the following line:
tft.writeRect(0, row, w, 1, awColors);

By altering this to
tft.writeRect(x, row+y, w, 1, awColors);

The bitmap is drawn correctly to the desired location in the screen.

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

No branches or pull requests

1 participant