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

Offset display #335

Open
aaronalam1987 opened this issue Sep 23, 2024 · 1 comment
Open

Offset display #335

aaronalam1987 opened this issue Sep 23, 2024 · 1 comment

Comments

@aaronalam1987
Copy link

Hopefully I am correct in my assumption that I can query this here, I am looking for a way to offset my display, everything is working great and I have managed to get it displaying in portrait mode (after fixing the flipped image)

However it is now center to the screen and I wish to push the main image to the top, I need to offset it negative 40 pixels I think.

A point in the right direction would be appreciated.

20240922_145327

Would like to move the image to the top.

@aaronalam1987
Copy link
Author

Nevermind, got it.

Modify line 67/68 of ili9341.h to suit.

67: #define DISPLAY_NATIVE_WIDTH 240
68: #define DISPLAY_NATIVE_HEIGHT 240

Still leaves me with a border across the top and bottom but nothing major.

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