-
Notifications
You must be signed in to change notification settings - Fork 1k
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
IL9163 128x128 LCD seems to have incorrect CGRAM offsets #71
Comments
Unfortunately different manufacturers wire the TFT to map screen pixels to different areas of the CGRAM, so this is probably the issue. Do you have a simple sketch ( which library example) that demonstrates the problem and I can test on an ILI9163 TFT that I have? |
I don't have access to this LCD in this moment. I will have it within few days and I will send sketch and example. |
With current library code display looks like that. It is shifted 32 pixels, and part of image is not visible: This is what helps (swapping offsets between different rotation modes)
I can prepare pull request with offset variants configurable in User_Setup file. |
I think being able to set the offsets in the User_Setup file is a good idea. What approach to this doyou suggest? |
Yes, this is exactly what I was thinking. // There are two variants of 128x128 IL9163. One has CGRAM offset due to unused 32 lines on the beginning of the memory, and one on the end
// If You see that your screen is shifted by 32 pixel switch to other setting
#define CGRAM_OFFSET OFFSET_FROM_START
//#define CGRAM_OFFSET OFFSET_FROM_END I have also other ideas how to tidy up User_Setups and TFT_Drivers:
Let me know if You like those ideas and I can prepare some PRs with proposition of changes. |
I have created PR with configuring variants of CGRAM_OFFSET |
Closing as I doubt I will update unless more of these displays pop up on the market. |
IL9163 128x128, or at least version I have doesn't work correctly with library. Screen area is shifted and some parts are not visible.
It seems that CGRAM_OFFSETS in ILI9163_Rotation.h are incorrect for given rotations.
I can see two options here:
I can create PR to fix that, just let me know if this is case 1 or 2.
The text was updated successfully, but these errors were encountered: